kbknapp / cargo-outdated

A cargo subcommand for displaying when Rust dependencies are out of date
MIT License
1.22k stars 96 forks source link

install with --locked fails due to API change: update `time` to version `>=0.3.35` #401

Open KonradHoeffner opened 1 month ago

KonradHoeffner commented 1 month ago

When I started cargo outdated today, I got an error with libgit2, so I updated it as described in the README with the --locked parameter as cargo install cargo-outdated --locked --force, however this results in the following error:

error[E0282]: type annotations needed for `Box<_>`
  --> /home/konrad/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.30/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
   = note: this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` by calling `cargo update`

I'm using cargo 1.83.0-nightly (c1fa840a8 2024-08-29) installed via Rustup on Arch Linux. Current cargo-outdated version is 0.15.0. Removing the --locked parameter fixes the issue. I guess you can fix this by either removing the --locked from the README or by creating a new release with an updated lockfile.

KonradHoeffner commented 1 month ago

P.S.: Addressed by https://github.com/kbknapp/cargo-outdated/pull/397 and https://github.com/kbknapp/cargo-outdated/pull/398, please accept one of them and release a new version.

barower commented 2 weeks ago

cargo install --locked cargo-outdated still gives this error

KonradHoeffner commented 2 weeks ago

Yeah, the maintainer seems to be inactive right now, I will try to reach out.

Z1xus commented 1 week ago

cargo outdated got OUTDATED