diff --git a/Formula/naabu.rb b/Formula/naabu.rb index da79847a87391..8187b4169cc4a 100644 --- a/Formula/naabu.rb +++ b/Formula/naabu.rb @@ -4,7 +4,7 @@ class Naabu < Formula url "https://github.com/projectdiscovery/naabu/archive/v2.0.4.tar.gz" sha256 "2d9f01e42f2182d008041e145c047a7ca45d31214a2d20b1acf4a148659b5815" license "MIT" - head "https://github.com/projectdiscovery/naabu.git" + head "https://github.com/projectdiscovery/naabu.git", branch: "master" bottle do sha256 cellar: :any_skip_relocation, arm64_big_sur: "0c2209fd89c55bb3a1e1e7d9d987606ddacead8c971202c1139fee903fb8ca18" @@ -18,6 +18,12 @@ class Naabu < Formula uses_from_macos "libpcap" + # Support go 1.17, remove after next release + patch do + url "https://github.com/projectdiscovery/naabu/commit/944874d7c5cf442fb68c5ad19ed5bf954b313386.patch?full_index=1" + sha256 "028e8dd2f9bd9634fc05ebcd0381d11320f94a6b9c68bd4a5648640a41089ea1" + end + def install cd "v2" do system "go", "build", *std_go_args, "./cmd/naabu"