Skip to content

Commit

Permalink
Do not run 'build' if --no-verify is supplied in dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Jul 12, 2024
1 parent 70fb8f2 commit 3b30700
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cargo-workspaces/src/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ impl Publish {

if self.dry_run {
info!("Checking package", name);
self.try_build(&metadata.workspace_root, &name, p)?;
if !self.no_verify {
self.try_build(&metadata.workspace_root, &name, p)?;
} else {
info!("Skipping build", name);
}
basic_checks(pkg)?;
info!("Can be published", name);
continue;
Expand Down

0 comments on commit 3b30700

Please sign in to comment.