Skip to content

Commit

Permalink
antibody: 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 fbea753
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Formula/antibody.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,7 @@ class Antibody < Formula
depends_on "go" => :build

def install
ENV["GOPATH"] = buildpath

dir = buildpath/"src/github.com/antibody/antibody"
dir.install buildpath.children

cd dir do
system "go", "mod", "vendor"
system "go", "build", "-ldflags", "-X main.version=#{version}"
bin.install "antibody"
end
system "go", "build", "-ldflags", "-s -w -X main.version=#{version}", "-trimpath", "-o", bin/"antibody"
end

test do
Expand Down

0 comments on commit fbea753

Please sign in to comment.