Skip to content

Commit

Permalink
Set constant of version in compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Jan 23, 2023
1 parent 7f41fef commit adfd1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ builds:
main: ./main.go
binary: acl
ldflags:
- -s -w
- -s -w -X "github.com/tsuru/acl-api/api/version.Version={{ .Tag }}"
env:
- CGO_ENABLED=0
goos:
Expand Down

0 comments on commit adfd1b2

Please sign in to comment.