Skip to content
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

hide-modulefile is currently ignored #691

Open
riederd opened this issue Feb 20, 2024 · 2 comments
Open

hide-modulefile is currently ignored #691

riederd opened this issue Feb 20, 2024 · 2 comments

Comments

@riederd
Copy link

riederd commented Feb 20, 2024

proc module-hide {args} {

The hide-modulefile function is currently ignored in TCL modules having .modulerc files since the function is a noop.

In my simple minded approach I added basic functionality to it:

proc module-hide {args} {
    set mfile [lindex $args end]
    myPuts "\{kind=\"hide_modulefile\", mfile=\"$mfile\"\},"
}

This way TCL modules with a .modulerc file containing module-hide [...] <modulefile> are not shown with module avail however they are (as expected) when using module --show_hidden avail.

Do I miss something that could cause problems with this simple "fix", or could you think to include this or something more sophisticated in future releases?

@haampie
Copy link

haampie commented Feb 26, 2024

Similar: #690

@riederd
Copy link
Author

riederd commented Feb 26, 2024

True, but I'm proposing a "solution" ;-)
However, since I'm new to Lmod, I don't really know if my "solution" is breaking something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants