Repository navigation
install: add --enable-like-lmod configure option - #744
Merged
Merged
Conversation
Several behaviors Lmod users expect exist in Modules but are disabled by default, each behind its own installation option. Sites migrating from Lmod, or providing both tools, had to find and set them one by one. The new option sets them all at once: abort on error on load and switch sub-commands, conflict unload, require via, unique name loaded, path entry reorder, contains search match and sticky purge reported as a warning. Like --enable-new-features, an option set after it on the command line supersedes the value it defines. Assisted-by: Claude:claude-fable-5-2 Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
xdelaruelle
force-pushed
the
like-lmod
branch
from
November 18, 2026 19:23
d6b0f8c to
cfa2fab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the
--enable-like-lmodinstallation option, which enables at once all the options making themodulecommand behave similarly to Lmod. These behaviors already exist in Modules but are disabled by default, each behind its own installation option, so sites migrating from Lmod or providing both tools had to find and set them one by one.The option is equivalent to the cumulative use of:
--with-abort-on-error=load:ml:reload:switch: a failed module evaluation aborts the wholeloadorswitchcommand--enable-conflict-unload: conflicting modules are automatically unloaded (Lmod autoswap)--enable-require-via: the module enabling a modulepath is a requirement of the modules loaded from it (Lmod module hierarchy)--enable-unique-name-loaded: only one module loaded per module name (Lmod one name rule)--enable-path-entry-reorder: a path entry added again is moved to its new position--with-search-match=contains:availmatches modules whose name contains the query--with-sticky-purge=warning:purgekeeps sticky modules loaded without raising an errorLike
--enable-new-features, an installation option set after--enable-like-lmodon the command line supersedes the value it defines, and--disable-like-lmodhas no effect.The option is documented in
INSTALL.rst, mentioned in the Lmod section of the Other module implementations document and added to the release notes.