aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-10-01 16:09:11 +0100
committerGitHub <noreply@github.com>2020-10-01 16:09:11 +0100
commit7048532bc4adcc017739fae358fd6b6c44b63ebd (patch)
tree90c508a0302cb6885990513d0d49637de0041001 /internal
parentdbae85283f3927444aa89221523405ada07a0f4a (diff)
Update version imprinting (#1462)
* Add version tag constant * Update build imprinting
Diffstat (limited to 'internal')
-rw-r--r--internal/version.go3
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)
}