From 267d9617b7d1eab97400684bfed99bce3ba1caa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 7 Nov 2023 22:27:37 +0800 Subject: [PATCH] build: Fix tag calculate --- cmd/internal/build_shared/tag.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/internal/build_shared/tag.go b/cmd/internal/build_shared/tag.go index 8a5840ac..608b5877 100644 --- a/cmd/internal/build_shared/tag.go +++ b/cmd/internal/build_shared/tag.go @@ -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 }