mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
Fixed cargo uninstall
behavior in Windows
This commit is contained in:
parent
9b13310ca5
commit
09be0eef54
@ -146,11 +146,13 @@ fn uninstall_pkgid(
|
||||
}
|
||||
tracker.remove(pkgid, &bins);
|
||||
}
|
||||
tracker.save()?;
|
||||
|
||||
for bin in to_remove {
|
||||
config.shell().status("Removing", bin.display())?;
|
||||
paths::remove_file(bin)?;
|
||||
}
|
||||
|
||||
// Only Save the tracker when remove Bin successfully.
|
||||
tracker.save()?;
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user