Skip to content

fix: handle all shells in run_in_environment#2315

Open
ritankarsaha wants to merge 1 commit intoconda:mainfrom
ritankarsaha:fix/run-in-environment-unsupported-shells
Open

fix: handle all shells in run_in_environment#2315
ritankarsaha wants to merge 1 commit intoconda:mainfrom
ritankarsaha:fix/run-in-environment-unsupported-shells

Conversation

@ritankarsaha
Copy link
Copy Markdown
Contributor

Description

Fixes - users on Zsh/Fish/PowerShell/NuShell/Xonsh hitting a runtime panic when pixi calls run_in_environment.

Replaced the unimplemented!() panic with proper invocations for Zsh, Fish, Xonsh, NuShell (script as positional arg) and PowerShell (-File flag). Add RunError::UnsupportedShell variant.

Fixes #2314

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added sufficient tests to cover my changes.

@baszalmstra

fix(rattler_shell): handle all shells in run_in_environment
@ritankarsaha ritankarsaha force-pushed the fix/run-in-environment-unsupported-shells branch from 40806c3 to f36036f Compare April 5, 2026 16:22
@ritankarsaha
Copy link
Copy Markdown
Contributor Author

@baszalmstra fixed CI fails, can you take a look into this once ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

run_in_environment panics on Zsh, Fish, PowerShell, NuShell, Xonsh

1 participant