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

Bug: "the lock file needs to be updated" #725

Open
lolbinarycat opened this issue Feb 26, 2024 · 1 comment
Open

Bug: "the lock file needs to be updated" #725

lolbinarycat opened this issue Feb 26, 2024 · 1 comment

Comments

@lolbinarycat
Copy link

Reproduction steps:

$ mv Cargo.lock Cargo.lock.old # also happens if Cargo.lock contains old library versions, but this is simpler to reproduce
$ cargo crev verify --show-all

command output:

    Updating crates.io index
the lock file /home/binarycat/src/rs/rdeck/Cargo.lock needs to be updated but --locked was passed to prevent this
If you want to try to generate the lock file without accessing the network, remove the --locked flag and use --offline instead.

it is impossible to get a backtrace, as the program exits successfully (status code 0), but fails to do anything.

$ cargo crev --version
cargo-crev 0.25.4

crev installed via nix-env

OS: NixOS 23.11.4315.c68a9fc85c2c (Tapir) x86_64
Kernel: 6.7.4

@lolbinarycat
Copy link
Author

workaround is to run cargo build beforehand

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

No branches or pull requests

1 participant