atlantis: remove gopath
Closes #47640. Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
parent
bba5f70868
commit
da2639065a
1 changed files with 1 additions and 9 deletions
|
@ -14,15 +14,7 @@ class Atlantis < Formula
|
|||
depends_on "terraform"
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
dir = "src/github.com/runatlantis/atlantis"
|
||||
build_dir = buildpath/dir
|
||||
build_dir.install buildpath.children
|
||||
|
||||
cd dir do
|
||||
system "go", "build", "-o", "atlantis"
|
||||
bin.install "atlantis"
|
||||
end
|
||||
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"atlantis"
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue