-
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
Point out _which_ version failed to error #2964
Comments
Should be a pretty easy bug too! Just a |
I wonder if it might be with PackageId's constructor. Checked the version decoder for Currently hacking on this, but running out of time for the day. I don't really understand the |
Hm maybe yeah! Probably good in any case to bolster up error reporting there anyway :) I think though that this is probably coming from |
Should the increased strictness of the For anyone uses Iron 0.3.0 and finds this issue when searching for the error message, the fix is to update Iron to 0.3.1, which fixes the malformed version in its Cargo.toml. |
There's already discussion of that in another bug. I'd link but I'm on mobile. From SemVer's perspective, this is a bugfix, not a breaking change. Regardless, this ticket is valid either way. On Aug 16, 2016, 18:48 -0400, Kevin Mehall [email protected], wrote:
|
#3001, for the purposes of cross-linking |
I think this is sufficiently fixed now. The original example shows a large warning added in #3154 with:
Details for parse errors were added in #6141. Errors generally look like this now:
|
Given this
Cargo.toml
:You get this error:
Now, there's two things that aren't great about this error. First, the text isn't as helpful as it could be, but that's just Cargo passing on the messages
semver
is giving, so that's not Cargo's fault. But what Cargo could do in this instance is say exactly which version failed to parse.In this case, the actual Cargo.toml was huge, with a ton of dependencies, and it took a sharp eye to notice that it should have been
0.2.*
. If it had pointed out which version failed, it would have been a lot easier.The text was updated successfully, but these errors were encountered: