Skip to content

Commit 7df6e7f

Browse files
committed
fix: setting release version in golang homebrew golang build
1 parent 3c6300c commit 7df6e7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hack/homebrew/gitops.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def install
1010
# ENV["GOPATH"] = buildpath
1111
path = buildpath/"cmd/gitops"
1212
cd path do
13-
system "go", "build", "-o", "#{bin}/gitops"
13+
system "go", "build", "-ldflags=\"-s -w -X 'main.version=${RELEASE_VERSION}'\"" "-o", "#{bin}/gitops"
1414
end
1515
end
1616

0 commit comments

Comments
 (0)