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.
This commit is contained in:
Eric Huss 2019-04-16 09:06:59 -07:00
parent 9328b12b35
commit 753b03f652
2 changed files with 4 additions and 4 deletions

View file

@ -532,7 +532,7 @@ fn compare_resolve(
)
}
};
let msg = format!("package `{}` added to Cargo.lock{}", pkg_id, extra);
let msg = format!("package `{}` added to the packaged Cargo.lock file{}", pkg_id, extra);
config.shell().status_with_color("Note", msg, Color::Cyan)?;
}
Ok(())

View file

@ -186,8 +186,8 @@ fn note_resolve_changes() {
[ARCHIVING] Cargo.toml
[ARCHIVING] src/main.rs
[UPDATING] `[..]` index
[NOTE] package `mutli v0.1.0` added to Cargo.lock, was originally sourced from `[..]/foo/mutli`
[NOTE] package `patched v1.0.0` added to Cargo.lock, was originally sourced from `[..]/foo/patched`
[NOTE] package `mutli v0.1.0` added to the packaged Cargo.lock file, was originally sourced from `[..]/foo/mutli`
[NOTE] package `patched v1.0.0` added to the packaged Cargo.lock file, was originally sourced from `[..]/foo/patched`
",
)
.run();
@ -310,7 +310,7 @@ fn out_of_date_lock_note() {
[ARCHIVING] Cargo.toml
[ARCHIVING] src/main.rs
[UPDATING] `[..]` index
[NOTE] package `dep v2.0.0` added to Cargo.lock, previous version was `1.0.0`
[NOTE] package `dep v2.0.0` added to the packaged Cargo.lock file, previous version was `1.0.0`
",
)
.run();