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 depends_on "go" => :build
def install def install
ENV["GOPATH"] = buildpath system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"jira", "cmd/jira/main.go"
dir = buildpath/"src/gopkg.in/Netflix-Skunkworks/go-jira.v1" prefix.install_metafiles
dir.install buildpath.children
cd dir do
system "go", "build", "-o", bin/"jira", "-ldflags", "-w -s", "cmd/jira/main.go"
prefix.install_metafiles
end
end end
test do test do