spack/lib/spack
Greg Becker bb35a98079
env create: create copies of relative include files in envs created from manifest (#48689)
Currently, environments created from manifest files with relative includes result in broken
references to config files.

This PR modifies `spack env create` to create local copies in the new environment of any local
config files from relative paths in the environment manifest passed as an init file.

This PR does not change the behavior if the include is an absolute path or if the include is from
a relative path outside the environment directory, but it does warn about missing relative includes if
they are inside the environment directory.

Includes regression test and short blurb in docs.
2025-02-01 01:41:18 +00:00
..
docs env create: create copies of relative include files in envs created from manifest (#48689) 2025-02-01 01:41:18 +00:00
env Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
external Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
llnl Move from python2 compliant IOError and EnvironmentError to python3-only OSError (#48764) 2025-01-30 09:32:57 -08:00
spack env create: create copies of relative include files in envs created from manifest (#48689) 2025-02-01 01:41:18 +00:00
spack_installable Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00