cargo-outdated icon indicating copy to clipboard operation
cargo-outdated copied to clipboard

Incompatible with v4 lockfiles

Open dtolnay opened this issue 1 year ago • 1 comments

As of https://github.com/rust-lang/cargo/pull/14595 and https://github.com/rust-lang/rust/pull/130929 (nightly-2024-09-29), Cargo is generating version = 4 in Cargo.lock by default.

$ cargo new repro
$ cd repro/
$ cargo build
$ cargo outdated
error: failed to parse lock file at: /path/to/repro/Cargo.lock

Caused by:
  lock file version 4 requires `-Znext-lockfile-bump`

Ironically, cargo-outdated's cargo dependency is outdated. I expect that adopting a newer version of the cargo library would resolve this issue.

https://github.com/kbknapp/cargo-outdated/blob/d3a7df3aa6041f2fdd89da82ae1bf3910cdf7fca/Cargo.toml#L30

dtolnay avatar Sep 29 '24 02:09 dtolnay