From c4e024c7e38b801930aef57309e7404f9a318e2b Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 20 Jun 2025 11:17:23 +0200 Subject: [PATCH] build: fix detection of next rc version --- script/next-version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/next-version.go b/script/next-version.go index 0e9e7ad50..19c047429 100644 --- a/script/next-version.go +++ b/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 {