From 195341113e7da85611553d1ea9bd907ccabeff64 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Mon, 15 Mar 2021 21:38:35 +0100 Subject: 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. --- share/spack/spack-completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') 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 -- cgit v1.2.3-70-g09d2