Skip to content

Commit

Permalink
dep: set version in ldflags
Browse files Browse the repository at this point in the history
Closes #23200.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
ilovezfs committed Jan 23, 2018
1 parent 46df03b commit b6bf7cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Formula/dep.rb
Expand Up @@ -18,7 +18,8 @@ def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/golang/dep").install buildpath.children
cd "src/github.com/golang/dep" do
system "go", "build", "-o", bin/"dep", ".../cmd/dep"
system "go", "build", "-o", bin/"dep", "-ldflags",
"-X main.version=#{version}", ".../cmd/dep"
prefix.install_metafiles
end
end
Expand Down

0 comments on commit b6bf7cc

Please sign in to comment.