atlantis: remove gopath

Closes #47640.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Caleb Xu 2019-12-08 23:03:14 -05:00 committed by Rui Chen
parent bba5f70868
commit da2639065a

View file

@ -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