summaryrefslogtreecommitdiff
path: root/lib/spack/docs/environments.rst
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2021-05-28 14:12:05 -0700
committerGitHub <noreply@github.com>2021-05-28 14:12:05 -0700
commit7490d63c38f5cd8dd927ee0adda4e28578bbd60d (patch)
tree509a332ec9a124ce0b7ae975aea5ea517b6f7673 /lib/spack/docs/environments.rst
parent9b99f85abf208612fe8ff7d108b6a68d970706d8 (diff)
downloadspack-7490d63c38f5cd8dd927ee0adda4e28578bbd60d.tar.gz
spack-7490d63c38f5cd8dd927ee0adda4e28578bbd60d.tar.bz2
spack-7490d63c38f5cd8dd927ee0adda4e28578bbd60d.tar.xz
spack-7490d63c38f5cd8dd927ee0adda4e28578bbd60d.zip
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.
Diffstat (limited to 'lib/spack/docs/environments.rst')
-rw-r--r--lib/spack/docs/environments.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/docs/environments.rst b/lib/spack/docs/environments.rst
index 12f6f4121c..79382ab9ac 100644
--- a/lib/spack/docs/environments.rst
+++ b/lib/spack/docs/environments.rst
@@ -723,6 +723,8 @@ Spack Environment managed views are updated every time the environment
is written out to the lock file ``spack.lock``, so the concrete
environment and the view are always compatible.
+.. _configuring_environment_views:
+
"""""""""""""""""""""""""""""
Configuring environment views
"""""""""""""""""""""""""""""