Skip to content

Commit

Permalink
armor: remove gopath
Browse files Browse the repository at this point in the history
Closes #47639.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
  • Loading branch information
alebcay authored and chenrui333 committed Dec 10, 2019
1 parent 66d18db commit 1c67ff6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Formula/armor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ class Armor < Formula
depends_on "go" => :build

def install
ENV["GOPATH"] = buildpath
armorpath = buildpath/"src/github.com/labstack/armor"
armorpath.install buildpath.children

cd armorpath do
system "go", "build", "-o", bin/"armor", "cmd/armor/main.go"
prefix.install_metafiles
end
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"armor", "cmd/armor/main.go"
prefix.install_metafiles
end

test do
Expand Down

0 comments on commit 1c67ff6

Please sign in to comment.