Skip to content

Commit

Permalink
fix(go/tools/releaser) allow prereleases (bazel-contrib#4177)
Browse files Browse the repository at this point in the history
We need to allow pre-releases in order to release the `rc1` of version
`0.51`
  • Loading branch information
tyler-french authored Nov 22, 2024
1 parent 0700ca9 commit 5c06cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/tools/releaser/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func runPrepare(ctx context.Context, stderr io.Writer, args []string) error {
if version == "" {
return usageErrorf(&prepareCmd, "-version must be set")
}
if semver.Canonical(version) != version || semver.Prerelease(version) != "" || semver.Build(version) != "" {
if semver.Canonical(version) != version || semver.Build(version) != "" {
return usageErrorf(&prepareCmd, "-version must be a canonical version, like v1.2.3")
}

Expand Down

0 comments on commit 5c06cb2

Please sign in to comment.