Finally found it in the changes.
https://modules.readthedocs.io/en/latest/NEWS.html
I will test using the tcl "source" command, instead of "module source"
However, I suspect there are subtle differences between the two in certain module modes.
You should update the module man page to clarify that you should use simply "source" in module files. Perhaps you should update the error message when you use module source in a module file.
On 10/7/2021 11:39 AM, Paul Markfort wrote:
>
> Is it by design, or by error, that the "module source" command can no longer be used in module files (it still works directly).
>
> When I upgraded to 5.0.0, I had to change this in my initial module file:
> (old line is commented out - it worked in 4.8.0).
>
> # module source "${_modules_home}/common/base/basealias"
> module switch base/basealias base/basealias
>
>
> In the specific situation (the affected module just defines aliases) - using module switch is better than source (because I don't have to include the full path), but I can think of situations where you don't want a command that unloads the module before loading it again.
>
>
>
>
>
>
--
--------------------------------------------------------
The views and opinions expressed above are strictly
those of the author(s). The content of this message has
not been reviewed nor approved by any entity whatsoever.
--------------------------------------------------------
Paul FM Info: http://paulfm.com/~paulfm/
--------------------------------------------------------
|