build: Fix tag calculate

This commit is contained in:
世界 2023-11-07 22:27:37 +08:00
parent 0a06ccae50
commit 267d9617b7
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

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
}