gobuster: remove gopath

Closes #47803.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Caleb Xu 2019-12-13 02:43:32 -05:00 committed by Rui Chen
parent 245d152d4f
commit 8083bece9e

View file

@ -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