GoTomato/internal/metadata/version.go
Sebastian Mark 61fc21224c feat: 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`
2024-11-07 19:20:29 +01:00

7 lines
257 B
Go

package metadata
import "strings"
// This will be overwritten by goreleaser on build
var GoTomatoVersion = "devel" // The GoTomato version
var ProtocolVersion = strings.Split(GoTomatoVersion, ".")[0] // The protocol version