Skip to content

Commit 91e3530

Browse files
authored
Do not choose prereleases as highest versions (#3764)
1 parent 97f5206 commit 91e3530

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

go/tools/releaser/upgradedep.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ func upgradeDepDecl(ctx context.Context, gh *githubClient, workDir, name string,
310310
if name != semver.Canonical(name) {
311311
continue
312312
}
313+
if semver.Prerelease(name) != "" {
314+
continue
315+
}
313316
tags[w] = tags[r]
314317
w++
315318
}

0 commit comments

Comments
 (0)