From 53aa9b5c103b1333a7b4a382ba02ae6887940710 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 1 Oct 2022 22:01:36 +0100 Subject: [PATCH] Spawn doesn't wait for the command to finish --- tools/src/publish.rs | 2 ++ tools/src/release.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/src/publish.rs b/tools/src/publish.rs index 0f8935f7..b6002293 100644 --- a/tools/src/publish.rs +++ b/tools/src/publish.rs @@ -66,6 +66,8 @@ pub fn publish(matches: &ArgMatches) -> Result<(), Error> { .arg("publish") .current_dir(&root_directory.join(publishable_crate)) .spawn() + .map_err(|_| Error::PublishCrate)? + .wait() .map_err(|_| Error::PublishCrate)?; } diff --git a/tools/src/release.rs b/tools/src/release.rs index 34e1225d..1b35697e 100644 --- a/tools/src/release.rs +++ b/tools/src/release.rs @@ -56,6 +56,8 @@ pub fn release(matches: &clap::ArgMatches) -> Result<(), Error> { Command::new("just") .arg("ci") .spawn() + .map_err(|_| Error::JustCiFailed)? + .wait() .map_err(|_| Error::JustCiFailed)?; if !dry_run {