Skip to content

Commit

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

Signed-off-by: Rui Chen <chenrui333@gmail.com>
  • Loading branch information
alebcay authored and chenrui333 committed Dec 10, 2019
1 parent b4a3450 commit 435012c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Formula/clipper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ class Clipper < Formula
depends_on "go" => :build

def install
ENV["GOPATH"] = buildpath
system "go", "build", "clipper.go"
bin.install "clipper"
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"clipper", "clipper.go"
end

plist_options :manual => "clipper"
Expand Down

0 comments on commit 435012c

Please sign in to comment.