diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-03-15 21:38:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 15:38:35 -0500 |
commit | 195341113e7da85611553d1ea9bd907ccabeff64 (patch) | |
tree | 39c2256edeb7b6a19021b6b01c35cfa1a751f072 /share | |
parent | 4f1d9d6095e5d59ebec5563e628c74efebc150e9 (diff) | |
download | spack-195341113e7da85611553d1ea9bd907ccabeff64.tar.gz spack-195341113e7da85611553d1ea9bd907ccabeff64.tar.bz2 spack-195341113e7da85611553d1ea9bd907ccabeff64.tar.xz spack-195341113e7da85611553d1ea9bd907ccabeff64.zip |
Expand relative dev paths in environment files (#22045)
* Rewrite relative dev_spec paths internally to absolute paths in case of relocation of the environment file
* Test relative paths for dev_path in environments
* Add a --keep-relative flag to spack env create
This ensures that relative paths of develop paths are not expanded to
absolute paths when initializing the environment in a different location
from the spack.yaml init file.
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/spack-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index 20bcf1e660..a0fea36e21 100755 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -793,7 +793,7 @@ _spack_env_deactivate() { _spack_env_create() { if $list_options then - SPACK_COMPREPLY="-h --help -d --dir --without-view --with-view" + SPACK_COMPREPLY="-h --help -d --dir --keep-relative --without-view --with-view" else _environments fi |