uninstalls toolchains prior to deleting the rustup home folder#2864
uninstalls toolchains prior to deleting the rustup home folder#2864Darunada wants to merge 3 commits intorust-lang:mainfrom
Conversation
kinnison
left a comment
There was a problem hiding this comment.
I'd like to see at least one test validating that this uninstall is happening. Probably it ought to be a new test in tests/cli-self-upd.rs something like an fn uninstall_removes_installed_toolchains()
|
sure thing, work has gotten a bit more stressful in the last couple weeks, I will try to do something this weekend |
|
@Darunada Do you still have time to advance it? If you don't have time I would be happy to help add that test. But it would be great if you could move forward. Thanks! |
5a9b7a0 to
4abc90a
Compare
2e7c6c9 to
6745cd9
Compare
|
Sorry for the delay, I went ahead and added a test. Let me know if you like the approach! |
This comment has been minimized.
This comment has been minimized.
511cf7b to
e6b5581
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Hello team, I am once again prepared for your reconsideration |
| } | ||
|
|
||
| pub(crate) fn uninstall( | ||
| cfg: &Cfg<'_>, |
There was a problem hiding this comment.
Tiny nit: this argument can replace process (which is accessible via cfg), and please keep it last.
Fixes #2789
I was able to reproduce the issue, and with this change the command now succeeds with the following output.