Skip to content

Commit 4b291a0

Browse files
committed
docs(package): Provide motivation
1 parent 89fe81b commit 4b291a0

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
@@ -272,7 +272,8 @@ fn do_package<'a>(
272272
// resolved,
273273
// so only try to get one if we need it.
274274
//
275-
// If they explicitly passed a registry on the CLI, we check it no matter what.
275+
// If they explicitly passed a registry on the CLI, we check it no matter what to verify
276+
// `package.publish`.
276277
let mut local_reg = if (deps.has_dependencies() && (opts.include_lockfile || opts.verify))
277278
|| opts.reg_or_index.is_some()
278279
{

0 commit comments

Comments
 (0)