rustup icon indicating copy to clipboard operation
rustup copied to clipboard

uninstalls toolchains prior to deleting the rustup home folder

Open Darunada opened this issue 4 years ago • 3 comments

Fixes #2789

I was able to reproduce the issue, and with this change the command now succeeds with the following output.

C:\Users\Lea>rustup self uninstall


Thanks for hacking in Rust!

This will uninstall all Rust toolchains and data, and remove
%USERPROFILE%\.cargo/bin from your PATH environment variable.

Continue? (y/N) y

info: removing toolchains
info: uninstalling toolchain 'nightly-x86_64-pc-windows-msvc'
info: toolchain 'nightly-x86_64-pc-windows-msvc' uninstalled
info: uninstalling toolchain 'stage2'
info: toolchain 'stage2' uninstalled
info: removing rustup home
info: removing cargo home
info: removing rustup binaries
info: rustup is uninstalled

Darunada avatar Oct 09 '21 22:10 Darunada

sure thing, work has gotten a bit more stressful in the last couple weeks, I will try to do something this weekend

Darunada avatar Nov 22 '21 16:11 Darunada

@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!

0xPoe avatar Sep 30 '22 02:09 0xPoe

Sorry for the delay, I went ahead and added a test. Let me know if you like the approach!

Darunada avatar Feb 25 '23 21:02 Darunada