Skip to content

Commit ea27ec1

Browse files
committed
docs: Clarify why we aren't printing Locking in some cases
1 parent 6f06fe9 commit ea27ec1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cargo/ops/resolve.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ fn resolve_with_registry<'gctx>(
252252
let print = if !ws.is_ephemeral() && ws.require_optional_deps() {
253253
ops::write_pkg_lockfile(ws, &mut resolve)?
254254
} else {
255+
// This mostly represents
256+
// - `cargo install --locked` and the only change is the package is no longer local but
257+
// from the registry which is noise
258+
// - publish of libraries
255259
false
256260
};
257261
if print {

0 commit comments

Comments
 (0)