For a long time the module configuration has had a few settings that use
`blacklist`/`whitelist` terminology. We've been asked by some of our users to replace
this with more inclusive language. In addition to being non-inclusive, `blacklist` and
`whitelist` are inconsistent with the rest of Spack, which uses `include` and `exclude`
for the same concepts.
- [x] Deprecate `blacklist`, `whitelist`, `blacklist_implicits` and `environment_blacklist`
in favor of `exclude`, `include`, `exclude_implicits` and `exclude_env_vars` in module
configuration, to be removed in Spack v0.20.
- [x] Print deprecation warnings if any of the deprecated names are in module config.
- [x] Update tests to test old and new names.
- [x] Update docs.
- [x] Update `spack config update` to fix this automatically, and include a note in the error
that you can use this command.
24 lines
381 B
YAML
24 lines
381 B
YAML
enable:
|
|
- tcl
|
|
tcl:
|
|
all:
|
|
autoload: none
|
|
filter:
|
|
exclude_env_vars:
|
|
- CMAKE_PREFIX_PATH
|
|
environment:
|
|
set:
|
|
'{name}_ROOT': '{prefix}'
|
|
|
|
'platform=test target=x86_64':
|
|
environment:
|
|
set:
|
|
FOO: 'foo'
|
|
OMPI_MCA_mpi_leave_pinned: '1'
|
|
unset:
|
|
- BAR
|
|
|
|
'platform=test target=core2':
|
|
load:
|
|
- 'foo/bar'
|