Skip to content

Commit ac79649

Browse files
committed
docs(package): Provide motivation
1 parent 1805f3f commit ac79649

File tree

1 file changed

+2
-1
lines changed
  • src/cargo/ops/cargo_package

1 file changed

+2
-1
lines changed

src/cargo/ops/cargo_package/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ fn do_package<'a>(
285285
// resolved,
286286
// so only try to get one if we need it.
287287
//
288-
// If they explicitly passed a registry on the CLI, we check it no matter what.
288+
// If they explicitly passed a registry on the CLI, we check it no matter what to verify
289+
// `package.publish`.
289290
let mut local_reg = if (deps.has_dependencies() && (opts.include_lockfile || opts.verify))
290291
|| opts.reg_or_index.is_some()
291292
{

0 commit comments

Comments
 (0)