-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add validation to reject package versions with leading zeros in numeric identifiers (semver v2.0.0) #3648
Comments
How is this different than #3482? The mentioned version is already not parsable as a version range: |
You refer to this very same issue? It may very well be that it is not parsable, but this issue tracks the very fact that gallery doesn't even try to parse/validate it. |
😆 oops! Very confusing. Sorry. I meant #3482.
Okay, perhaps we're saying the same thing. I don't understand what work there would be to complete this issue on top of the work required to complete #3482. |
Clear. Thanks! |
Currently, no
.
characters are allowed in (pre)release labels in the version string, so this is a non-issue currently. However, when introducing semver v2.0.0 support, we should reject packages that use leading zeros in numeric identifiers of release labels.Example of invalid semver2 version string:
1.0.0-alpha.001
Example of valid semver2 version string (possible today, no numeric identifier parts in release label):
1.0.0-alpha-001
The text was updated successfully, but these errors were encountered: