-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
crates.io: Dependency line given wrong if suffixes are used #952
Comments
This looks like it's actually because rust-lang/semver doesn't parse this version requirement. It looks like it currently only has support for requirements with major/minor/patch numbers (no identifiers and such). |
It actually re-implements the complete parsing. It there any specific reason why Predicate can't simply be defined as
} and re-use the most logic from Version? edit: I accidentally tabbed out the box and submitted before finishing… |
I believe the error messages here have improved some time since this was opened, and semver was also updated with support for more requirements, so I think this is fixed. I'm going to close this for now, but feel free to reopen if you see it again! |
This is still not fixed. Going back to an old version crates.io, now claims that In fact the situation worsened because the error message is less helpful. |
Ah well, looks like there's still some work to do! |
Comparing prerelease versions is fixed in dtolnay/semver#54 (not published to crates.io yet though) |
I can cut a release if this is needed more quickly, I was going to wait until all the new comparisons work. first |
No urgency, just ran into this myself so I'm linking the relevant issues up. I suppose linking to dtolnay/semver#58 is more useful in that case. |
Yeah I'm fine updating semver whenever it's ready, thanks for the update @eljay! |
As part of that, @alexcrichton , any chance you could find some time to file those issues about what oyu want to see for 1.0? |
I believe this is a dupe of #2337 which was fixed by dtolnay/semver#74 and #2348, so I think this can be closed. |
Aha yes indeed, thanks @carols10cents! |
I am still running into this, and believe this is easily reproduced by trying to run [package]
name = "version-issue"
version = "0.3.6+20141121"
[dependencies.google-tasks1]
version = "0.1.15+123" Even though The file will parse correctly if the Meta
|
@Byron I did a little investigating, and I think you're seeing dtolnay/semver#88. I found that through #2939, which sounds like the same symptoms as you're reporting here. So it's a bug with the semver crate! |
@carols10cents Thanks for figuring this out ! I just subscribed to the linked issue on the |
@carols10cents Apparently the comment to you convinced me to make this PR, which should fix this issue once it bubbled up to cargo. |
@Byron awesome!!! |
I've opened #3124 about upgrading Cargo's version of |
https://crates.io/crates/image claims that
image = "~0.2.0-alpha.1"
should work. It doesn't.The error message is:
image = "~0.2.0"
on the other hand works.The text was updated successfully, but these errors were encountered: