nabijaczleweli / cargo-update

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

If the cargo index is removed install-update fails to run #150

Closed xbb closed 3 years ago

xbb commented 3 years ago

Clearing the cargo index (manually or for example via cargo-cache crate) breaks cargo install-update -l/-a etc...

Couldn't get package repository: Couldn't read /home/user/.cargo/registry/index/github.com-1ecc6299db9ec823 (index directory for https://github.com/rust-lang/crates.io-index): No such file or directory (os error 2).

A work around is to rebuild the index with cargo search --limit 0 or cargo search <crate>

nabijaczleweli commented 3 years ago

Can you try current master (at least 5420022d7ade463bf77fab75b2c62fed9364b3bd)?

xbb commented 3 years ago

Just tested and it works fine!

Thank you

nabijaczleweli commented 3 years ago

Cool, released in v5.0.0!