antibody: remove gopath

Closes #47637.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
master
Caleb Xu 2019-12-08 22:34:57 -05:00 committed by Rui Chen
parent 0313715531
commit 8b7ebcbbcb
1 changed files with 1 additions and 10 deletions

View File

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