build: fix detection of next rc version

This commit is contained in:
Jakob Borg
2025-06-20 11:17:23 +02:00
parent c5a29b5b26
commit c4e024c7e3

View File

@@ -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 {