From 7dd06d3b02e725a7326d3381e60fb244e2320768 Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Mon, 14 Oct 2024 16:50:05 +0200 Subject: [PATCH] fix: explicitly run default environment (#2273) ``` pixi run -e default xxx ``` Would not result in an explicit env run but would act like an auto detected run, still prompting the environment selector. --- src/cli/run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/run.rs b/src/cli/run.rs index 315b917b5..b020cb60e 100644 --- a/src/cli/run.rs +++ b/src/cli/run.rs @@ -59,7 +59,7 @@ pub async fn execute(args: Args) -> miette::Result<()> { let environment = project.environment_from_name_or_env_var(args.environment.clone())?; // Find the environment to run the task in, if any were specified. - let explicit_environment = if environment.is_default() { + let explicit_environment = if args.environment.is_none() { None } else { Some(environment.clone())