mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Add a --offline hint.
This commit is contained in:
parent
626f0f40ef
commit
237051fbff
@ -56,8 +56,9 @@ pub fn write_pkg_lockfile(ws: &Workspace<'_>, resolve: &Resolve) -> CargoResult<
|
|||||||
"--frozen"
|
"--frozen"
|
||||||
};
|
};
|
||||||
failure::bail!(
|
failure::bail!(
|
||||||
"the lock file {} needs to be updated but {} was passed to \
|
"the lock file {} needs to be updated but {} was passed to prevent this\n\
|
||||||
prevent this",
|
If you want to try to generate the lock file without accessing the network, \
|
||||||
|
use the --offline flag.",
|
||||||
ws.root().to_path_buf().join("Cargo.lock").display(),
|
ws.root().to_path_buf().join("Cargo.lock").display(),
|
||||||
flag
|
flag
|
||||||
);
|
);
|
||||||
|
@ -514,6 +514,7 @@ fn locked_correct_error() {
|
|||||||
"\
|
"\
|
||||||
[UPDATING] `[..]` index
|
[UPDATING] `[..]` index
|
||||||
error: the lock file [CWD]/Cargo.lock needs to be updated but --locked was passed to prevent this
|
error: the lock file [CWD]/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.
|
||||||
",
|
",
|
||||||
)
|
)
|
||||||
.run();
|
.run();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user