-
Notifications
You must be signed in to change notification settings - Fork 148
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
Return error if name in crates.io is different #78
Conversation
Am I understanding correctly that the crates.io API actually gives us the Would it then not make sense to just insert the normalized name (and maybe Pradip Caulagi notifications@github.com schrieb am Fr., 4. März 2016 um
|
Yes, that is my understanding as well, that crates.io gives the normalised name only for the case when there is a mismatch between underscores and hyphens. In other cases, where the crate name is mis-spelled/not-matching, we get "not found". I asked a question here - rust-lang/crates.io#283 - as I don't know if this is something that can be relied on. |
☔ The latest upstream changes (presumably #83) made this pull request unmergeable. Please resolve the merge conflicts. |
I'm writing an editor extension to run |
…rcup New year, new bugfixes This is a rollup of #98 (which replaces #78), #99, and #100. @sebasgarcep and @sinkuu, thank you for your PRs! Do you have time to review this? I've add a few tests and changed to code slightly, before running Rustfmt and Clippy. Just to make sure Github gets all the references: Fixes #52 Fixes #88 Fixes #92
Superseded by #101 |
As described in #51, I have added a check to validate the crate_name is the same as the one on crates.io or return an error.
I have added a couple of tests as well, but they actually hit crates.io endpoint.