Skip to content

Commit

Permalink
*: fix goreleaser build (#330)
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <xw897002528@gmail.com>
  • Loading branch information
xhebox authored Jul 14, 2023
1 parent 2b7b6ea commit 9a49933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ builds:
main: ./cmd/tiproxy
binary: tiproxy
ldflags:
- -s -w -X main.Version={{.Version}} -X main.commit={{.FullCommit}}
- -s -w -X github.com/pingcap/TiProxy/pkg/util/versioninfo.TiProxyVersion={{.Version}} -X github.com/pingcap/TiProxy/pkg/util/versioninfo.TiProxyGitHash={{.FullCommit}}
goos:
- linux
- darwin
Expand All @@ -22,7 +22,7 @@ builds:
main: ./cmd/tiproxyctl
binary: tiproxyctl
ldflags:
- -s -w -X main.Version={{.Version}} -X main.commit={{.FullCommit}}
- -s -w -X github.com/pingcap/TiProxy/pkg/util/versioninfo.TiProxyVersion={{.Version}} -X github.com/pingcap/TiProxy/pkg/util/versioninfo.TiProxyGitHash={{.FullCommit}}
goos:
- linux
- darwin
Expand Down

0 comments on commit 9a49933

Please sign in to comment.