Skip to content

Commit 753b03f

Browse files
committed
Alter cargo package Cargo.lock modification note.
Try to make it clearer that it is not modifying the actual Cargo.lock file, but the one that is being stored in the .crate file.
1 parent 9328b12 commit 753b03f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cargo/ops/cargo_package.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ fn compare_resolve(
532532
)
533533
}
534534
};
535-
let msg = format!("package `{}` added to Cargo.lock{}", pkg_id, extra);
535+
let msg = format!("package `{}` added to the packaged Cargo.lock file{}", pkg_id, extra);
536536
config.shell().status_with_color("Note", msg, Color::Cyan)?;
537537
}
538538
Ok(())

tests/testsuite/publish_lockfile.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ fn note_resolve_changes() {
186186
[ARCHIVING] Cargo.toml
187187
[ARCHIVING] src/main.rs
188188
[UPDATING] `[..]` index
189-
[NOTE] package `mutli v0.1.0` added to Cargo.lock, was originally sourced from `[..]/foo/mutli`
190-
[NOTE] package `patched v1.0.0` added to Cargo.lock, was originally sourced from `[..]/foo/patched`
189+
[NOTE] package `mutli v0.1.0` added to the packaged Cargo.lock file, was originally sourced from `[..]/foo/mutli`
190+
[NOTE] package `patched v1.0.0` added to the packaged Cargo.lock file, was originally sourced from `[..]/foo/patched`
191191
",
192192
)
193193
.run();
@@ -310,7 +310,7 @@ fn out_of_date_lock_note() {
310310
[ARCHIVING] Cargo.toml
311311
[ARCHIVING] src/main.rs
312312
[UPDATING] `[..]` index
313-
[NOTE] package `dep v2.0.0` added to Cargo.lock, previous version was `1.0.0`
313+
[NOTE] package `dep v2.0.0` added to the packaged Cargo.lock file, previous version was `1.0.0`
314314
",
315315
)
316316
.run();

0 commit comments

Comments
 (0)