Skip to content

Commit

Permalink
Add ldflags to wtfutil installation procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
jottr committed Nov 23, 2019
1 parent c41c127 commit d53654d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Formula/wtfutil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ class Wtfutil < Formula

def install
ENV["GOPROXY"] = "https://gocenter.io"
system "go", "build", "-o", bin/"wtfutil"
ldflags=["-s -w -X main.version=#{version}",
"-X main.date=#{Time.now.iso8601}"]
system "go", "build", "-ldflags", ldflags.join(" "), "-o", bin/"wtfutil"
end

test do
Expand Down

0 comments on commit d53654d

Please sign in to comment.