go-jira: remove gopath

Closes #47801.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Caleb Xu 2019-12-13 02:32:19 -05:00 committed by Rui Chen
parent 80d56e8457
commit 0d603d9270

View file

@ -14,14 +14,8 @@ class GoJira < Formula
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
dir = buildpath/"src/gopkg.in/Netflix-Skunkworks/go-jira.v1"
dir.install buildpath.children
cd dir do
system "go", "build", "-o", bin/"jira", "-ldflags", "-w -s", "cmd/jira/main.go"
prefix.install_metafiles
end
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"jira", "cmd/jira/main.go"
prefix.install_metafiles
end
test do