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
when no Cargo.lock file is provided in the crate source repository leads to the following error message:
error: the lock file /path/to/Cargo.lock needs to be updated but --frozen was passed to prevent this
If you want to try to generate the lock file without accessing the network, remove the --frozen flag and use --offline instead.
Problem
Trying to build a crate with:
when no
Cargo.lock
file is provided in the crate source repository leads to the following error message:It should mention
--locked
and not--frozen
.Steps
No response
Possible Solution(s)
https://github.com/rust-lang/cargo/blob/master/src/cargo/ops/lockfile.rs#L50-L54
could actually be:
Notes
(Never done rust and didn't compile the suggestion)
The absence of Cargo.lock file shouldn't matter to reproduce the bug but it's an easy way to reproduce it.
Version
No response
The text was updated successfully, but these errors were encountered: