nabijaczleweli / cargo-update

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

No recognition that some crates have updates #47

Closed gcp closed 7 years ago

gcp commented 7 years ago
$ cargo install-update -a
    Updating registry `https://github.com/rust-lang/crates.io-index`

Package       Installed  Latest    Needs update
clippy        v0.0.123   v0.0.123  No
rustsym       v0.3.1     v0.3.1    No
rustfmt       v0.8.3     v0.8.3    No
cargo-update  v0.8.0     v0.8.0    No
ripgrep       v0.5.1     v0.5.1    No
racer         v2.0.6     v2.0.6    No

No packages need updating.

Reality: https://crates.io/crates/ripgrep Cargo.toml

ripgrep = "0.6.0"

Versions

 0.6.0 Aug 24, 2017 
gcp commented 7 years ago

cargo install --force ripgrep immediately recognizes there's a new ripgrep

mati865 commented 7 years ago

You have many outdated packages:

 mateusz@openSUSE  ~  cargo install-update -a
    Updating registry `https://github.com/rust-lang/crates.io-index`

Package         Installed  Latest    Needs update
cargo-update    v1.1.2     v1.1.2    No
cargo-fuzz      v0.4.3     v0.4.3    No
rustfmt         v0.9.0     v0.9.0    No
cargo-outdated  v0.4.0     v0.4.0    No
ripgrep         v0.6.0     v0.6.0    No
rustsym         v0.3.2     v0.3.2    No
clippy          v0.0.157   v0.0.157  No

But most important is cargo-update v0.8.0 v0.8.0 No from your output. There was big change shortly after, once you call cargo install --force cargo-update it will work again.

gcp commented 7 years ago

Thanks, I guess it might have been a bug in an older cargo-update version.

mati865 commented 7 years ago

For reference: https://github.com/nabijaczleweli/cargo-update/issues/32