Use link time variables for versioning (release script)
srishanbhattarai opened this issue · comments
There have been several instances in which I simply forgot to update the version number in code for the CLI
Line 14 in 2000701
The release has the right tag number the CLI version is incorrect.
I believe the way to do this should be an ldflags
build time variable.
The Goreleaser build page has more information. Example:
ldflags:
- -s -w -X main.build={{.Version}}
- ./usemsan=-msan
The {{.Version}}
template seems to automatically do the right thing as described here which uses the current tag as the version number.
No cares about this one for now