Lmod icon indicating copy to clipboard operation
Lmod copied to clipboard

hide-modulefile is currently ignored

Open riederd opened this issue 1 year ago • 2 comments

https://github.com/TACC/Lmod/blob/eb3e9119ef1ec3a17f2feb693c9dba16e1c93503/src/RC2lua.tcl#L65

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?

riederd avatar Feb 20 '24 17:02 riederd

Similar: #690

haampie avatar Feb 26 '24 09:02 haampie

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.

riederd avatar Feb 26 '24 10:02 riederd

I am closing this ticket. All discussion is being moved to #690.

rtmclay avatar Sep 11 '24 20:09 rtmclay