Environment Modules Updates

Tracing module execution

by Xavier Delaruelle
The trace verbosity is introduced between the verbose and debug levels to report details on module searches, resolutions, selections and evaluations. Trace mode can be enabled by setting the verbosity config to the trace value or by...
new feature
v4.6

Forbidding use of modules

by Xavier Delaruelle
The module-forbid modulefile command is added to dynamically forbid the evaluation of modulefiles it specifies. When forbidden, a module cannot be loaded and an access error is returned when an attempt is made to evaluate it. $ cat...
new feature
v4.6

Hiding modules

by Xavier Delaruelle
The newly introduced module-hide modulefile command enables to dynamically hide modulefiles, module aliases or symbolic versions specified to it: $ cat /path/to/modulefiles/bar/.modulerc #%Module4.6 module-version bar/1.0...
new feature
v4.6

Querying user's name and groups membership

by Xavier Delaruelle
Two new sub-commands are introduced for the module-info modulefile command: username and usergroups. They respectively fetch the name of the user currently running modulecmd.tcl or the name of all the groups this user is member of...
new feature
v4.6

Embed shell scripts in modulefiles

by Xavier Delaruelle
The source-sh modulefile command is introduced to source environment changes done by the evaluation of a shell script passed as argument. With newly introduced sh-to-mod sub-command resulting environment changes done by script are output...
new feature
v4.6

Translating shell scripts into modulefiles

by Xavier Delaruelle
The sh-to-mod sub-command is added to output as a modulefile content the environment changes done by the evaluation of a shell script passed as argument. sh-to-mod is especially useful for software providing a shell script for their...
new feature
v4.6

Automatic default and latest symbolic versions

by Xavier Delaruelle
When the implicit default mechanism and the advanced module version specifiers are both enabled, a default and a latest symbolic versions are automatically defined for each module name. This new feature gives the ability to select the...
v4.5
new feature

Error stack trace

by Xavier Delaruelle
Error messages will now embed a stack trace for unknown errors to help localize the root cause of issues. This change applies to modulefile evaluation: Loading foo/1.2 Module ERROR: add-path cannot handle path equals to...
v4.5
new feature

Improved Windows support

by Xavier Delaruelle
A new option to the ./configure script named --enable-windows-support is introduced to install additional files relative to the enablement of Modules on the Windows platform. When set, this option installs module.cmd, ml.cmd and envml...
new feature
v4.5