You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
are treated as "valid". I intentionally put valid in quotes because it's clear that the internal representation of such a version is wrong anyway. All the consumer can reliably do with that parsed version is to call String() on it to reconstruct the same (invalid) version. https://go.dev/play/p/hyp8ZZJQO8-
As discovered by @rclark
The semver spec is clear that build or prerelease identifiers MUST come after a
-
.Versions, such as the following
are treated as "valid". I intentionally put valid in quotes because it's clear that the internal representation of such a version is wrong anyway. All the consumer can reliably do with that parsed version is to call
String()
on it to reconstruct the same (invalid) version.https://go.dev/play/p/hyp8ZZJQO8-
The Readme of
go-version
explicitly saysTherefore I would treat this as a bug.
The text was updated successfully, but these errors were encountered: