瀏覽代碼

build: fix detection of next rc version

Jakob Borg 4 月之前
父節點
當前提交
c4e024c7e3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      script/next-version.go

+ 1 - 1
script/next-version.go

@@ -84,7 +84,7 @@ func main() {
 		// We want the next prerelease. We are already on a prerelease. If
 		// it's the correct prerelease compared to the logs we just got, we
 		// should just bump the prerelease counter.
-		if next.LessThan(*latest) {
+		if next.Major == latest.Major && next.Minor == latest.Minor && next.Patch == latest.Patch {
 			parts := latest.PreRelease.Slice()
 			for i, p := range parts {
 				if v, err := strconv.Atoi(p); err == nil {