Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with v4 lockfiles #402

Closed
dtolnay opened this issue Sep 29, 2024 · 1 comment · Fixed by #403
Closed

Incompatible with v4 lockfiles #402

dtolnay opened this issue Sep 29, 2024 · 1 comment · Fixed by #403

Comments

@dtolnay
Copy link

dtolnay commented Sep 29, 2024

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"

@frewsxcv
Copy link

frewsxcv commented Nov 2, 2024

For anyone who wants to work around this:

cargo install --git https://github.com/MonterraByte/cargo-outdated.git --branch cargo-update

via #403

dtolnay added a commit to dtolnay/cargo-llvm-lines that referenced this issue Nov 29, 2024
Repository owner deleted a comment Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants