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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue