Skip to content

Commit

Permalink
.goreleaser.yml: Add LDFLAGS
Browse files Browse the repository at this point in the history
goreleaser was missing ldflags, so the binaries produced and added to
the release did not include version information.
  • Loading branch information
mrueg committed Jul 29, 2020
1 parent a33089d commit ece8987
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ builds:
- 7
env:
- CGO_ENABLED=0
ldflags:
- "-X github.com/cloudnativelabs/kube-router/pkg/cmd.version={{.Version}}"
- "-X github.com/cloudnativelabs/kube-router/pkg/cmd.buildDate={{.Date}}"

archives:
-
format: tar.gz
Expand Down

0 comments on commit ece8987

Please sign in to comment.