Do not include commit hash when releasing tag

This commit is contained in:
Cuong Manh Le authored and Cuong Manh Le committed 2025-03-27 20:11:57 +07:00
1 parent a9ed70200b
commit b7ccfcb8b4
1 file changed
+3
+3
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]
}