Skip to content

Commit

Permalink
fix: explicitly run default environment (prefix-dev#2273)
Browse files Browse the repository at this point in the history
```
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.
  • Loading branch information
ruben-arts authored Oct 14, 2024
1 parent 1af11ea commit 7dd06d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 7dd06d3

Please sign in to comment.