nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.22k stars 42 forks source link

cargo-update compile failure results in bad executable state #21

Closed starkat99 closed 7 years ago

starkat99 commented 7 years ago

Running cargo install-update cargo-update that results in a compile failure (e.g. because rc.exe wasn't in the path) leaves the .cargo/bin executables in a bad state. I ended up with at bad cargo-install-update.exe file that was 0 bytes (and not a symlink) and a cargo-install-update.exe-0.6.2 file that was the previous version. The original executable was not restored and I had to manually restore it in order to run the update again (with the proper path).

nabijaczleweli commented 7 years ago

Definitely should not be the case, I'll investigate tomorrow

nabijaczleweli commented 7 years ago

Released in v0.6.5