Skip to content

Commit 17ec415

Browse files
committed
Use the correct the flag in --locked --offline error message
Signed-off-by: hi-rustin <[email protected]>
1 parent b1636fc commit 17ec415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/lockfile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn write_pkg_lockfile(ws: &Workspace<'_>, resolve: &mut Resolve) -> CargoRes
4747
}
4848

4949
if !ws.config().lock_update_allowed() {
50-
let flag = if ws.config().network_allowed() {
50+
let flag = if ws.config().locked() {
5151
"--locked"
5252
} else {
5353
"--frozen"

0 commit comments

Comments
 (0)