From 0f47f5b6ca6d18a43b8caac9cb1e6a29b2b4dc15 Mon Sep 17 00:00:00 2001 From: Bas Zalmstra Date: Tue, 20 Jun 2023 16:57:10 +0200 Subject: [PATCH 1/2] fix: use default shell --- src/cli/run.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cli/run.rs b/src/cli/run.rs index 7f87bedcf..37de86e0d 100644 --- a/src/cli/run.rs +++ b/src/cli/run.rs @@ -46,9 +46,7 @@ pub async fn execute(args: Args) -> anyhow::Result<()> { }); // Determine the current shell - let shell: ShellEnum = ShellEnum::from_env() - .or_else(ShellEnum::from_parent_process) - .unwrap_or_default(); + let shell: ShellEnum = ShellEnum::default(); // Construct an activator so we can run commands from the environment let prefix = get_up_to_date_prefix(&project).await?; From 0ea80c8abafcdfcb503fe1b59def1966e9a6d7f9 Mon Sep 17 00:00:00 2001 From: Bas Zalmstra Date: Tue, 20 Jun 2023 16:58:23 +0200 Subject: [PATCH 2/2] fix: depends_on --- src/command/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/command/mod.rs b/src/command/mod.rs index 19f360ff4..d75b9aab1 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -19,6 +19,7 @@ pub struct ProcessCmd { pub cmd: CmdArgs, /// A list of commands that should be run before this one + #[serde(default)] #[serde_as(deserialize_as = "OneOrMany<_, PreferMany>")] pub depends_on: Vec, }