From e179bea6254e9cc8064ec2130f46fe3a36ec4d48 Mon Sep 17 00:00:00 2001 From: John DiSanti Date: Wed, 17 Aug 2022 12:28:55 -0700 Subject: [PATCH] Don't compile crates a second time during `cargo publish` (#1644) --- tools/publisher/src/cargo/publish.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/publisher/src/cargo/publish.rs b/tools/publisher/src/cargo/publish.rs index fd16d4a94..a8a08a6cd 100644 --- a/tools/publisher/src/cargo/publish.rs +++ b/tools/publisher/src/cargo/publish.rs @@ -33,10 +33,10 @@ impl ShellOperation for Publish { let mut command = Command::new(self.program); command .current_dir(&self.package_path) - .env("CARGO_INCREMENTAL", "0") // Disable incremental compilation to reduce disk space used .arg("publish") .arg("--jobs") - .arg("1"); + .arg("1") + .arg("--no-verify"); // The crates have already been built in previous CI steps let output = command.output()?; if !output.status.success() { let (stdout, stderr) = output_text(&output); -- GitLab