docs: Clarify why we aren't printing Locking in some cases

This commit is contained in:
Ed Page 2024-04-16 12:08:57 -05:00
parent 6f06fe908a
commit ea27ec1f96
1 changed files with 4 additions and 0 deletions

View File

@ -252,6 +252,10 @@ fn resolve_with_registry<'gctx>(
let print = if !ws.is_ephemeral() && ws.require_optional_deps() {
ops::write_pkg_lockfile(ws, &mut resolve)?
} else {
// This mostly represents
// - `cargo install --locked` and the only change is the package is no longer local but
// from the registry which is noise
// - publish of libraries
false
};
if print {