Skip to content

Commit 5c06cb2

Browse files
authored
fix(go/tools/releaser) allow prereleases (#4177)
We need to allow pre-releases in order to release the `rc1` of version `0.51`
1 parent 0700ca9 commit 5c06cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/tools/releaser/prepare.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func runPrepare(ctx context.Context, stderr io.Writer, args []string) error {
9191
if version == "" {
9292
return usageErrorf(&prepareCmd, "-version must be set")
9393
}
94-
if semver.Canonical(version) != version || semver.Prerelease(version) != "" || semver.Build(version) != "" {
94+
if semver.Canonical(version) != version || semver.Build(version) != "" {
9595
return usageErrorf(&prepareCmd, "-version must be a canonical version, like v1.2.3")
9696
}
9797

0 commit comments

Comments
 (0)