Skip to content

Commit

Permalink
add MODULES_AUTO_HANDLING documentation and repairs of gold files
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Feb 21, 2024
1 parent 0b6893b commit 9dec704
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
9 changes: 9 additions & 0 deletions docs/source/090_configuring_lmod.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,15 @@ the configuration option which will set the action.
~/.config/lmod but will check both directories when reading picking
the most recent one.

**MODULES_AUTO_HANDLING**
[yes/no, default: no, --with-modulesAutoHandling]. If this option
is activated or the env. var. MODULES_AUTO_HANDLING is set then Lmod
will change prereq() to depends_on() and prereq_any() to
depends_on_any().





Configuration only settings
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
5 changes: 3 additions & 2 deletions rt/configDir/err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
step 1
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --version
===========================
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
Modules based on Lua: Version 8.7.34 2024-01-05 19:34 -07:00
by Robert McLay [email protected]
===========================
step 2
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --config
===========================
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
Modules based on Lua: Version 8.7.34 2024-01-05 19:34 -07:00
by Robert McLay [email protected]
Description Value
Allow root to use Lmod (LMOD_ALLOW_ROOT_USE) yes
Expand Down Expand Up @@ -36,6 +36,7 @@ lmod_config.lua location (LMOD_CONFIG_LOCATION) ProjectDIR/rt/conf
LUA_CPATH @sys_lua_cpath@
LUA_PATH @sys_lua_path@
System lua-term (LMOD_HAVE_LUA_TERM) no
Modules Auto Handling no
avail: Include modulepath dir (LMOD_MPATH_AVAIL) no
MODULEPATH_INIT (LMOD_MODULEPATH_INIT) @PKG@/init/.modulespath -> <empty>
MODULEPATH_ROOT (MODULEPATH_ROOT)
Expand Down
11 changes: 6 additions & 5 deletions rt/help/err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
step 1
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --version
===========================
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
Modules based on Lua: Version 8.7.34 2024-01-05 19:34 -07:00
by Robert McLay [email protected]
===========================
step 2
Expand Down Expand Up @@ -108,7 +108,7 @@ Lmod Web Sites
SourceForge: https://lmod.sf.net
TACC Homepage: https://www.tacc.utexas.edu/research-development/tacc-projects/lmod
To report a bug please read https://lmod.readthedocs.io/en/latest/075_bug_reporting.html
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
Modules based on Lua: Version 8.7.34 2024-01-05 19:34 -07:00
by Robert McLay [email protected]
===========================
step 3
Expand Down Expand Up @@ -214,7 +214,7 @@ Lmod Web Sites
SourceForge: https://lmod.sf.net
TACC Homepage: https://www.tacc.utexas.edu/research-development/tacc-projects/lmod
To report a bug please read https://lmod.readthedocs.io/en/latest/075_bug_reporting.html
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
Modules based on Lua: Version 8.7.34 2024-01-05 19:34 -07:00
by Robert McLay [email protected]
===========================
step 4
Expand All @@ -234,7 +234,7 @@ Version 9
step 5
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --config
===========================
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
Modules based on Lua: Version 8.7.34 2024-01-05 19:34 -07:00
by Robert McLay [email protected]
Description Value
Allow root to use Lmod (LMOD_ALLOW_ROOT_USE) yes
Expand Down Expand Up @@ -262,6 +262,7 @@ lmod_config.lua location (LMOD_CONFIG_LOCATION) no
LUA_CPATH @sys_lua_cpath@
LUA_PATH @sys_lua_path@
System lua-term (LMOD_HAVE_LUA_TERM) no
Modules Auto Handling no
avail: Include modulepath dir (LMOD_MPATH_AVAIL) no
MODULEPATH_INIT (LMOD_MODULEPATH_INIT) @PKG@/init/.modulespath -> <empty>
MODULEPATH_ROOT (MODULEPATH_ROOT)
Expand Down Expand Up @@ -412,7 +413,7 @@ propT = {
step 6
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --miniConfig
===========================
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
Modules based on Lua: Version 8.7.34 2024-01-05 19:34 -07:00
by Robert McLay [email protected]
LMOD_PACKAGE_PATH D nil <empty>
LMOD_SYSTEM_DEFAULT_MODULES D __unknown__ <empty>
Expand Down
2 changes: 1 addition & 1 deletion src/Configuration.lua
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ local function l_new(self)
tbl.luaV = { k = "Lua Version" , v = _VERSION, n = false }
tbl.lua_term = { k = "System lua-term" , v = have_term, n = "LMOD_HAVE_LUA_TERM" }
tbl.lua_term_A = { k = "Active lua-term" , v = activeTerm, n = false }
tbt.mAutoHndl = { k = "Modules Auto Handling" , v = modulesAutoHanding, n = false }
tbl.mAutoHndl = { k = "Modules Auto Handling" , v = modulesAutoHanding, n = false }
tbl.mpath_av = { k = "avail: Include modulepath dir" , v = mpath_avail, n = "LMOD_MPATH_AVAIL" }
tbl.mpath_init = { k = "MODULEPATH_INIT" , v = mpath_init, n = "LMOD_MODULEPATH_INIT" }
tbl.mpath_root = { k = "MODULEPATH_ROOT" , v = mpath_root, n = "MODULEPATH_ROOT" }
Expand Down

0 comments on commit 9dec704

Please sign in to comment.