mod modulerc¶
- module modulerc¶
Lmod module version aliases.
A module tree’s modules/all/<Name>/.modulerc.lua publishes short versions with
module_version("Name/full", "alias").module load Name/aliasloadsName/full. EasyBuild treats that alias as the installed module, which is whyJava/21is installed when the tree hasJava/21.0.8and a modulerc that aliases it to21.Functions
- fn apply_modulerc(installed: &BTreeSet<String>, aliases: &[ModuleVersionAlias]) -> BTreeSet<String>¶
Add an alias to the installed set when the module it points at is installed.
- fn load_modulerc(path: &Path) -> Result<Vec<ModuleVersionAlias>, String>¶
Read a modulerc file, or every
.modulerc.luaunder a module tree.
- fn parse_modulerc(text: &str) -> Vec<ModuleVersionAlias>¶
Read
module_version("Name/full", "alias"[, ...])calls from a modulerc.Lua line comments are ignored. A call may span lines. Each alias after the full module name becomes its own
Name/aliaswhen the alias has no/.
Structs and Unions