-
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
Support uninstallation of multiple packages #4561
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @matklad (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Looks great @nossralf ! One question I have though is what is the interaction between Perhaps a safe option would be to forbid passing both |
Thanks! Yeah, that's the one thing I was uncertain of (I mentioned it in the issue I, perhaps redundantly, created for this, #4560). The thing is, I guess there is a case to be made for having I'll happily update the PR with such a check here. A question in that case, I suppose the check would happen in |
Updated the pull request to add an early bailout if The wording in the bailout message can probably be better. |
Oh, sorry, this completely has fallen of my radar :( Changes look good to me! There were some concerns on the issue that we perhaps don't need this option. I personally feel like we should have at at least because install does, but let's ask @withoutboats and @alexcrichton as well. Question 1: do we need ( |
Oh, no worries! I'm in no hurry. I realize it's a gamble to submit a PR for a feature suggestion before it has been approved on the feature level. I would understand if the PR was closed without merging if the feature itself isn't approved for good reasons, that makes perfect sense. I think this change has merit, but understand if Cargo maintainers disagree. (I've personally still gotten value out of writing the code, since it's been good practice for me in learning Rust.) Anyways, I had another test I wanted to add to this, and that's done now. |
This looks great to me, thanks @nossralf! @matklad I think this is a fine feature to add, and in general we've been pretty lax about adding features to Cargo. If someone's motivated enough to send a PR that's typically enough to say "sure!". Overall though I tend to just figure that if it's "reasonable" (for whatever definition you'd like) it's good enough, and then canvassing the wider team failing that. |
I'd like to move away from this 😅 (esecially since features in cargo have tended to be insta-stable) but I still agree that in this case being symmetrical with install is closer to being a bug fix than a new feature. |
📌 Commit 05224d6 has been approved by |
Support uninstallation of multiple packages This is a WIP pull request with support for uninstalling multiple packages. It mirrors the logic used for `cargo install`. Fixes #4560
☀️ Test successful - status-appveyor, status-travis |
This is a WIP pull request with support for uninstalling multiple packages. It mirrors the logic used for
cargo install
.Fixes #4560