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
Add spack env activate --temp
#25388
Conversation
13ca779
to
4766b8c
Compare
967fe66
to
6afa220
Compare
This pr requires #25729 (which is merged) |
Review would be appreciated |
6afa220
to
84df144
Compare
84df144
to
f6837ed
Compare
Any chance of getting at least a unit test for |
Force re-running checks due to odd 'failure' in required shell test. (Possibly patch coverage related?) |
Hi Tamara, I introduced that The code should be covered with the shell test... not sure why it's failing though. |
The shell test failure was a legitimate one. I couldn't convince argparse to accept either With the last commit:
Edit: thx @tldahlgren, there actually was a missing shell test for spack env activate --temp... hopefully coverage goes up now. |
Creates an environment in a temporary directory and activates it, which is useful for a quick ephemeral environment: ``` $ spack env activate -p --temp [spack-1a203lyg] $ spack add zlib ==> Adding zlib to environment /tmp/spack-1a203lyg ==> Updating view at /tmp/spack-1a203lyg/.spack-env/view ```
78f8c04
to
191fdc5
Compare
Creates an environment in a temporary directory and activates it, which
is useful for a quick ephemeral environment: