ACCESS-NRI / spack-config

Shared spack configuration
Apache License 2.0
1 stars 0 forks source link

common/config.yaml: override environments_root and source_cache #42

Closed harshula closed 2 weeks ago

harshula commented 2 weeks ago

Overriding environments_root and source_cache to point outside of the spack git repository takes us one step closer to an immutable spack directory. Thanks @atteggiani for prompting me to look at this.

CodeGat commented 2 weeks ago

Looks good. Similar to this in ACCESS-NRI/ACCESS-ESM1.5: https://github.com/ACCESS-NRI/ACCESS-ESM1.5/blob/6ba5764fd9a4937370b24b33f487f0cbb77d8f3b/spack.yaml#L79-L84

harshula commented 2 weeks ago

Test:

# ls environments/
access-om2

# ls sourcecache/
_source-cache

# ls
ACCESS-OM2  cache     git_repos  release      spack     spack-packages
bootstrap   environments  intel      sourcecache  spack-config