-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Equivalent of module-hide --hidden-loaded
?
#690
Comments
I have created a branch named IS690-hide. This branch support Tmod commands in .modulerc files
And Lmod now supports the following commands in .modulerc.lua files and $LMOD_MODULERC files:
The documentation for this feature does not exist yet but the Tmod documentation describes what Lmod is doing. This branch has also added marking or decorations to terse output:
These decorations can be turned off by setting
At the latest, this branch will be merged into the main branch on Nov. 15th 2024. Just before Supercomputing 2024. Please test this branch before then. Thanks! |
Looking good. Only issue I found so far is that the tcl flag is |
I have updated this branch with this change. Thanks for testing this out. |
@rtmclay The Also, if you're using markers anyway, why not make them more meaningful like |
@xdelaruelle Thanks for pointing out that --hidden-loaded matches. I have updated the branch to match. @boegel: Thanks for the feedback. Yes. the and markers are a breaking change. These are the same markers that Tmod produces so I'll stay with those. Also setting:
turns them off. This can also be turned off in /etc/lmod/lmod_config.lua with
when this branch becomes main Also note that the Lmod hide{} now uses |
…se hidden_loaded instead of hidden_load
…se hidden_loaded instead of hidden_load
@rtmclay OK, understood. Tracking that for EasyBuild in easybuilders/easybuild-framework#4637 A couple of related questions:
|
Yes. LMOD_TERSE_DECORATIONS is new to the IS690-hide branch. Lmod does not care if you set $LMOD_TERSE_DECORATIONS now. Lmod only cares about the ones that are defined and doesn't care about unknown ones. Lmod does error out if you try to set an unknown cosmic:value() to an unknown option. Yes, this will be Lmod 8.8 |
Does Lmod have an equivalent of https://modules.readthedocs.io/en/latest/modulefile.html#mfcmd-module-hide?
We're generating reasonably large dependency graphs where say 30 modules are hidden, and only 2 are exposed to the user (under module avail).
Modules are hidden using an rc file:
in case of Lmod, and
in case of "Environment Modules".
Currently after
module load pkg
:module list
shows only 32 modules, many of which don't mean much to the usermodule list
shows only 2 modules that are meaningful to the userDoes this functionality exist in Lmod too?
The text was updated successfully, but these errors were encountered: