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
Floating version ranges do not include numeric only labels #4513
Comments
Related issue:
I have 3 packages in my feed: Expected: My.Sample.Lib 2.0.0-beta2 should be resolved. Actual: My.Sample.Lib 2.0.0 gets resolved. |
* Allow 1.0.0-* to float from 1.0.0-0 instead of 1.0.0-- which is a non-numeric label. * Treat floating labels that end with . in the same way as labels ending in - when converting to non-snapshot versions for display purposes. Fixes NuGet/Home#4513
* Allow 1.0.0-* to float from 1.0.0-0 instead of 1.0.0-- which is a non-numeric label. * Treat floating labels that end with . in the same way as labels ending in - when converting to non-snapshot versions for display purposes. Fixes NuGet/Home#4513
@emgarten - let's make sure to move any issues we close into the current milestone. thx. |
* Allow 1.0.0-* to float from 1.0.0-0 instead of 1.0.0-- which is a non-numeric label. * Treat floating labels that end with . in the same way as labels ending in - when converting to non-snapshot versions for display purposes. Fixes NuGet/Home#4513
Floating version ranges do not include numeric only labels
Steps
Result
The package is not referenced because in SemVer the resulting min version of
1.0.0--
is greater than1.0.0-100
. Numeric labels come before non-numeric.The correct min version would be
1.0.0-0
however writing this out to nuspecs during pack would cause 2.x clients to break. 2.x did not allow release labels to start with numbers (this isn't a SemVer rule).The text was updated successfully, but these errors were encountered: