Skip to content

Commit

Permalink
atlantis: remove gopath
Browse files Browse the repository at this point in the history
  • Loading branch information
alebcay committed Dec 9, 2019
1 parent b15cb7e commit 9586e8e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Formula/atlantis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9586e8e

Please sign in to comment.