From 8083bece9e447b4e1a924e88bad10de34960d9a9 Mon Sep 17 00:00:00 2001 From: Caleb Xu Date: Fri, 13 Dec 2019 02:43:32 -0500 Subject: [PATCH] gobuster: remove gopath Closes #47803. Signed-off-by: Rui Chen --- Formula/gobuster.rb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Formula/gobuster.rb b/Formula/gobuster.rb index 6a68214bfe..1502a4db06 100644 --- a/Formula/gobuster.rb +++ b/Formula/gobuster.rb @@ -16,15 +16,8 @@ class Gobuster < Formula depends_on "go" => :build def install - ENV["GOPATH"] = buildpath - - dir = buildpath/"src/github.com/OJ/gobuster" - dir.install buildpath.children - - cd dir do - system "go", "build", "-o", bin/"gobuster" - prefix.install_metafiles - end + system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"gobuster" + prefix.install_metafiles end test do