Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix zsh Incompatibility in Spack Environment Activation #271

Open
EnekoGonzalez3 opened this issue Mar 5, 2025 · 0 comments · Fixed by #268
Open

Fix zsh Incompatibility in Spack Environment Activation #271

EnekoGonzalez3 opened this issue Mar 5, 2025 · 0 comments · Fixed by #268
Assignees
Milestone

Comments

@EnekoGonzalez3
Copy link
Contributor

The deployment script's use of the -p flag with spack env activate causes issues in zsh, as it fails to determine the interactive shell prompt. Changing the if statement in build.sh and install.sh to use eval $(spack env activate --sh "${REPO_ROOT}") resolves this issue. This change supports sh, bash, and zsh and has been successfully tested locally.

@EnekoGonzalez3 EnekoGonzalez3 added this to the 2025-03-15 milestone Mar 5, 2025
@EnekoGonzalez3 EnekoGonzalez3 self-assigned this Mar 5, 2025
@EnekoGonzalez3 EnekoGonzalez3 linked a pull request Mar 5, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant