Skip to content

Commit 2525f57

Browse files
fix version issue
1 parent 3f6da53 commit 2525f57

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/version.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import (
55
"strings"
66
)
77

8-
// Version is set by GoReleaser at build time. Do not update manually.
9-
var Version = "dev"
8+
// version is set by GoReleaser at build time. Do not update manually.
9+
var version = "dev"
1010

1111
// GetVersion returns the current version, preferring build-time version,
1212
// then falling back to .version file, then "dev"
1313
func GetVersion() string {
1414
// If version was set at build time (not "dev"), use it
15-
if Version != "dev" {
16-
return Version
15+
if version != "dev" {
16+
return version
1717
}
1818

1919
// Try to read from .version file

0 commit comments

Comments
 (0)