go-jira: remove gopath
Closes #47801. Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
parent
80d56e8457
commit
0d603d9270
1 changed files with 2 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue