-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cargo doesn't understand build metadata in versions #2939
Comments
What if you specify the build metadata version exactly? On Jul 31, 2016, 18:49 -0700, jethrogb notifications@github.com, wrote:
|
Oh, sorry, I mis-read, you clearly tried that. Sorry. What does --verbose say? On Jul 31, 2016, 18:49 -0700, jethrogb notifications@github.com, wrote:
|
The quoted text. |
That seems very strange. As part of the SemVer crates tests, I attempt to parse every version on crates.io, so it should know how to parse it... I suspect that this is more of a SemVer bug than a Cargo bug; I'll try to investigate more in the next few days. On Jul 31, 2016, 19:31 -0700, jethrogb notifications@github.com, wrote:
|
@steveklabnik I wonder if this is related to version requirements vs version themselves? Maybe version requirements don't parse build metadata? |
Ah ha! That is the case.
So yes, this is actually a I've opened an issue: dtolnay/semver#88 so closing in favor of that. |
Semver allows specifying versions such as
1.0.0+20130313144700
, see http://semver.org/#spec-item-10 . Cargo can't handle such versions. See e.g. https://crates.io/crates/core_rustc-serialize which has these versions:Specifying a dependency
core_rustc-serialize = "*"
(orcore_rustc-serialize = "^0.3"
) results in Cargo choosing 0.3.19. There is simply no way to select0.3.19+patch1
. Putting it in theCargo.toml
results in the error message "the given version requirement is invalid". You also can't select it usingcargo update --precise
. This results in a crate existing on crates.io that can effectively not be used by anyone.See also #2222 #2935
The text was updated successfully, but these errors were encountered: