I have pushed Lmod Version 7.1.8 to github.com:TACC/Lmod which combines
Lise and Ward's suggestions to improve the error message when a site
chooses to use LMOD_DISABLE_SAME_NAME_AUTOSWAP=yes.
My error message looks like:
Lmod has detected the following error: Your site prevents the automatic
swapping of modules with same name. You must explicitly unload the loaded
version of "moduleA/1.0" before you can load the new one. Use swap (or an
unload followed by a load) to do this:
$ module swap moduleA/1.0 moduleA/2.0
Alternatively, you can set the environment variable
LMOD_DISABLE_SAME_NAME_AUTOSWAP to "no" to re-enable same name autoswapping.
While processing the following module(s):
Module fullname Module Filename
moduleB/1.0 ProjectDIR/rt/load/mf/Core2/moduleB/1.0.lua
R.
On Thu, Dec 15, 2016 at 10:21 AM, Ward Poelmans <wpo...@gm...> wrote:
> On Thu, Dec 15, 2016 at 3:39 PM, Lebouc Lise (CS SI)
> <Lis...@cn...> wrote:
> >
> > The message should be more comprehensive if the number of the version
> > appears in the message (like $ module swap moduleA/1.0 moduleA/2.0) ??
> >
> > I find how to do that : in the file lmod/lmod/libexec/Master.lua, I did
> two
> > modifications line 281 and 284 of the 7.1.5 lmod version.
>
> That seems like a good idea to me. But you want to use `fullName`
> instead of manually concating sn and version. In Lmod speak 'sn' is
> short name (moduleA in this case) and fullName is name+version
> (moduleA/1.0).
>
> Sent a pull request to the github repo?
>
>
> > Do you know where I can find documentation about all variables like
> > LMOD_DISABLE_SAME_NAME_AUTOSWAP?
>
> The best place is probably the file `src/myGlobals.lua` which has all of
> these.
>
> Ward
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Lmod-users mailing list
> Lmo...@li...
> https://lists.sourceforge.net/lists/listinfo/lmod-users
>
--
Robert McLay, Ph.D.
TACC
Manager, HPC Software Tools
(512) 232-8104
|