-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Selecting prerelease versions doesn't work #73
Comments
Here's the core of it:
these are not considered equal for some reason |
So the root of the issue is multiple pre sections. With just |
Hrm, so https://play.rust-lang.org/?gist=f399089d777f3fc4effd&version=stable
I am confused as to how these two differ. We only use |
Using the same definitions also works: https://play.rust-lang.org/?gist=cffbc41f771a38132c79&version=stable ugh. |
OH: Somehow, these two versions are being parsed differently. That's the problem. |
Adjusting the test: let v1 = VersionReq::parse("2.1.1-really.0").unwrap();
let v2 = Version::parse("2.1.1-really.0").unwrap();
println!("v1: {:?}", v1);
println!("v2: {:?}", v2); gives
So, it's that If only I had done that |
With this extra conditional, a pre-release version of 0 gets parsed as an AlphaNumeric rather than a Numeric. Fixes #73
PR submitted |
This test fails:
Discovered in rust-lang/cargo#2337
The text was updated successfully, but these errors were encountered: