Skip to content

Incompatible with v4 lockfilesΒ #402

@dtolnay

Description

@dtolnay

As of rust-lang/cargo#14595 and rust-lang/rust#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.

cargo = "0.76.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions