Do not include commit hash when releasing tag

This commit is contained in:
Cuong Manh Le
2025-03-27 20:11:57 +07:00
committed by Cuong Manh Le
parent a9ed70200b
commit b7ccfcb8b4

View File

@@ -97,6 +97,9 @@ func curVersion() string {
if version != "dev" && !strings.HasPrefix(version, "v") {
version = "v" + version
}
if version != "" && version != "dev" {
return version
}
if len(commit) > 7 {
commit = commit[:7]
}