feat(gorleaser): set version from git tag on build
- make `GoTomatoVersion` a variable and default it to "devel" - add ldflags to `.goreleaser.yaml` for version tagging - remove "v" from output of `-version`
This commit is contained in:
parent
783d158e92
commit
93f39507c1
3 changed files with 6 additions and 3 deletions
|
@ -2,5 +2,6 @@ package metadata
|
|||
|
||||
import "strings"
|
||||
|
||||
const GoTomatoVersion = "0.1.1" // The GoTomato version
|
||||
// This will be overwritten by goreleaser on build
|
||||
var GoTomatoVersion = "devel" // The GoTomato version
|
||||
var ProtocolVersion = strings.Split(GoTomatoVersion, ".")[0] // The protocol version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue