pumba: remove gopath

Closes #48176.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Caleb Xu 2019-12-21 20:46:39 -05:00 committed by Rui Chen
parent 272dffa246
commit fd68f3ee6c

View file

@ -15,15 +15,9 @@ class Pumba < Formula
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
src = buildpath/"src/github.com/alexei-led/pumba"
src.install buildpath.children
src.cd do
system "go", "build", "-o", bin/"pumba", "-ldflags",
"-X main.Version=#{version}", "./cmd"
prefix.install_metafiles
end
system "go", "build", "-ldflags", "-s -w -X main.Version=#{version}",
"-trimpath", "-o", bin/"pumba", "./cmd"
prefix.install_metafiles
end
test do