build: Fix tag calculate

This commit is contained in:
世界 committed 2023-11-07 22:27:37 +08:00
1 parent 0a06ccae50
commit 267d9617b7
1 file changed
-3
-3
View File
@@ -17,9 +17,6 @@ func ReadTag() (string, error) {
}
shortCommit, _ := shell.Exec("git", "rev-parse", "--short", "HEAD").ReadOutput()
version := badversion.Parse(currentTagRev[1:])
if version.PreReleaseIdentifier == "" {
version.Patch++
}
return version.String() + "-" + shortCommit, nil
}