pumba: remove gopath
Closes #48176. Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
parent
272dffa246
commit
fd68f3ee6c
1 changed files with 3 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue