You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using --locked flag with cargo build fails because Cargo.lock is not up-to-date.
error: 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, use the --offline flag.
(I also recommend you to release a new version after updating the Cargo.lock file)
To Reproduce
Checkout the repository.
Run any cargo command with --locked flag. (e.g. cargo build --locked)
Expected behavior
Successful build.
System Info
OS: Arch Linux
Rust: 1.50.0-nightly
Additional context
You should update the Cargo.lock file for solving this issue. Please use cargo build command and commit the updated Cargo.lock file.
The text was updated successfully, but these errors were encountered:
Describe the bug
Using
--locked
flag withcargo build
fails becauseCargo.lock
is not up-to-date.Usage of
--locked
flag is important for the AUR package's reproducibility.(I also recommend you to release a new version after updating the
Cargo.lock
file)To Reproduce
--locked
flag. (e.g.cargo build --locked
)Expected behavior
Successful build.
System Info
1.50.0-nightly
Additional context
You should update the
Cargo.lock
file for solving this issue. Please usecargo build
command and commit the updatedCargo.lock
file.The text was updated successfully, but these errors were encountered: