x/exp/cmd/gorelease: don't accept invalid -version increments #37558
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
FrozenDueToAge
modules
NeedsFix
The path to resolution is known, but the work has not been done.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gorelease
should report an error when the-version
flag is set to a version much higher than any current version. New versions should be consistent with Semantic Versioning.For example, if the only known version of a module (as reported by
go list -m -versions
) isv1.2.3
, then-version
may be set tov1.2.4
orv1.3.0
.v1.2.5
andv1.4.0
would be rejected.v1.3.1
would also be rejected, since the patch version is not set to zero.This check would not apply to pre-release versions (e.g.,
v1.5.0-pre
) or to versions with major versionv0
.The text was updated successfully, but these errors were encountered: