diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-10-01 16:09:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 16:09:11 +0100 |
commit | 7048532bc4adcc017739fae358fd6b6c44b63ebd (patch) | |
tree | 90c508a0302cb6885990513d0d49637de0041001 /internal | |
parent | dbae85283f3927444aa89221523405ada07a0f4a (diff) |
Update version imprinting (#1462)
* Add version tag constant
* Update build imprinting
Diffstat (limited to 'internal')
-rw-r--r-- | internal/version.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/version.go b/internal/version.go index 851a0938..718273e7 100644 --- a/internal/version.go +++ b/internal/version.go @@ -12,10 +12,11 @@ const ( VersionMajor = 0 VersionMinor = 0 VersionPatch = 0 + VersionTag = "" // example: "rc1" ) func VersionString() string { - version := fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch) + version := fmt.Sprintf("%d.%d.%d%s", VersionMajor, VersionMinor, VersionPatch, VersionTag) if branch != "" { version += fmt.Sprintf("-%s", branch) } |