spack/etc/spack/defaults
Greg Becker 7490d63c38
Separable module configuration -- without the bugs this time (#23703)
Currently, module configurations are inconsistent because modulefiles are generated with the configs for the active environment, but are shared among all environments (and spack outside any environment).

This PR fixes that by allowing Spack environments (or other spack config scopes) to define additional sets of modules to generate. Each set of modules can enable either lmod or tcl modules, and contains all of the previously available module configuration. The user defines the name of each module set -- the set configured in Spack by default is named "default", and is the one returned by module manipulation commands in the absence of user intervention.

As part of this change, the module roots configuration moved from the config section to inside each module configuration.

Additionally, it adds a feature that the modulefiles for an environment can be configured to be relative to an environment view rather than the underlying prefix. This will not be enabled by default, as it should only be enabled within an environment and for non-default views constructed with separate projections per-spec.
2021-05-28 14:12:05 -07: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 Separable module configuration -- without the bugs this time (#23703) 2021-05-28 14:12:05 -07:00
config.yaml Separable module configuration -- without the bugs this time (#23703) 2021-05-28 14:12:05 -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 Add fuse virtual dependency, new macfuse package (#23904) 2021-05-27 23:21:11 +02:00
repos.yaml Add "default" configuration scope. 2016-07-19 17:10:17 -07:00