spack/etc/spack/defaults
Todd Gamblin a1216138f6
config: fix SPACK_DISABLE_LOCAL_CONFIG, remove $user_config_path (#27022)
There were some loose ends left in ##26735 that cause errors when
using `SPACK_DISABLE_LOCAL_CONFIG`.

- [x] Fix hard-coded `~/.spack` references in `install_test.py` and `monitor.py`

Also, if `SPACK_DISABLE_LOCAL_CONFIG` is used, there is the issue that
`$user_config_path`, when used in configuration files, makes no sense,
because there is no user config scope.

Since we already have `$user_cache_path` in configuration files, and since there
really shouldn't be *any* data stored in a configuration scope (which is what
you'd configure in `config.yaml`/`bootstrap.yaml`/etc., this just removes
`$user_config_path`.

There will *always* be a `$user_cache_path`, as Spack needs to write files, but
we shouldn't rely on the existence of a particular configuration scope in the
Spack code, as scopes are configurable, both in number and location.

- [x] Remove `$user_config_path` substitution.
- [x] Fix reference to `$user_config_path` in `etc/spack/deaults/bootstrap.yaml`
      to refer to `$user_cache_path`, which is where it was intended to be.
2021-10-28 21:33:44 +00:00
..
cray defaults/cray: use modules.yaml from defaults/linux (#23932) 2021-05-26 20:16:13 +00:00
darwin Add fuse virtual dependency, new macfuse package (#23904) 2021-05-27 23:21:11 +02:00
linux apply default linux prefix inspections to all module sets (#24151) 2021-06-04 21:37:20 -06:00
bootstrap.yaml config: fix SPACK_DISABLE_LOCAL_CONFIG, remove $user_config_path (#27022) 2021-10-28 21:33:44 +00:00
config.yaml config: overrides for caches and system and user scopes (#26735) 2021-10-26 18:08:25 -07:00
mirrors.yaml Use AWS CloudFront for source mirror (#23978) 2021-05-28 00:18:30 -07:00
modules.yaml Separable module configuration -- without the bugs this time (#23703) 2021-05-28 14:12:05 -07:00
packages.yaml pbs: new virtual package (#24568) 2021-07-27 16:37:00 +00:00
repos.yaml Add "default" configuration scope. 2016-07-19 17:10:17 -07:00