We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f6da53 commit 2525f57Copy full SHA for 2525f57
cmd/version.go
@@ -5,15 +5,15 @@ import (
5
"strings"
6
)
7
8
-// Version is set by GoReleaser at build time. Do not update manually.
9
-var Version = "dev"
+// version is set by GoReleaser at build time. Do not update manually.
+var version = "dev"
10
11
// GetVersion returns the current version, preferring build-time version,
12
// then falling back to .version file, then "dev"
13
func GetVersion() string {
14
// If version was set at build time (not "dev"), use it
15
- if Version != "dev" {
16
- return Version
+ if version != "dev" {
+ return version
17
}
18
19
// Try to read from .version file
0 commit comments