diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2023-01-23 19:03:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-23 10:03:54 -0800 |
commit | 13739e07837a580fd8c632e0dde35938ecc4908c (patch) | |
tree | 3c29b7dc0d2766dad7c2b86f6f7b3b221bdf1e9a /CITATION.cff | |
parent | b8684008d09a7a7cc9952634a16c0769621a6f54 (diff) | |
download | spack-13739e07837a580fd8c632e0dde35938ecc4908c.tar.gz spack-13739e07837a580fd8c632e0dde35938ecc4908c.tar.bz2 spack-13739e07837a580fd8c632e0dde35938ecc4908c.tar.xz spack-13739e07837a580fd8c632e0dde35938ecc4908c.zip |
environments: don't replace relative view path with absolute path on concretize/install (#34958)
* environments: don't rewrite relative view path, expand path on cli ahead of time
Currently if you have a spack.yaml that specifies a view by relative
path, Spack expands it to an absolute path on `spack -e . install` and
persists that to disk.
This is rather annoying when you have a `spack.yaml` file inside a git
repo, cause you want to use relative paths to make it relocatable, but
you constantly have to undo the changes made to spack.yaml by Spack.
So, as an alternative:
1. Always stick to paths as they are provided in spack.yaml, never
replace them with a canonicalized version
2. Turn relative paths on the command line into absolute paths before
storing to spack.yaml. This way you can do `spack env create --dir
./env --with-view ./view` and both `./env` and `./view` are resolved
to the current working dir, as expected (not `./env/view`). This
corresponds to the old behavior of `spack env create`.
* create --with-view always takes a value
Diffstat (limited to 'CITATION.cff')
0 files changed, 0 insertions, 0 deletions