From 8b7ebcbbcbf5fa60677e1ae8d7b59324bd83a2ce Mon Sep 17 00:00:00 2001 From: Caleb Xu Date: Sun, 8 Dec 2019 22:34:57 -0500 Subject: [PATCH] antibody: remove gopath Closes #47637. Signed-off-by: Rui Chen --- Formula/antibody.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Formula/antibody.rb b/Formula/antibody.rb index e3bf5460771..5c76a0593da 100644 --- a/Formula/antibody.rb +++ b/Formula/antibody.rb @@ -14,16 +14,7 @@ class Antibody < Formula depends_on "go" => :build def install - ENV["GOPATH"] = buildpath - - dir = buildpath/"src/github.com/antibody/antibody" - dir.install buildpath.children - - cd dir do - system "go", "mod", "vendor" - system "go", "build", "-ldflags", "-X main.version=#{version}" - bin.install "antibody" - end + system "go", "build", "-ldflags", "-s -w -X main.version=#{version}", "-trimpath", "-o", bin/"antibody" end test do