On 16/12/15 09:36, Alan O'Cais wrote:


On 16 December 2015 at 08:00, Kenneth Hoste <[email protected] <mailto:[email protected]>> wrote:


    In particular: marking modules as default. Can an invisible module
    ever be the default?


Yes a hidden module can be a default...but you have to explicitly set it so. I've done that in the past using the soft link approach (default -> .1.0.0)
I was deliberately using 'invisible' here, to distinct from hidden modules.

Hidden modules, e.g. foo/.1.0.0 are already supported now, and yes, they can be the default if you marked them.

Invisible modules, e.g. foo/1.0.0 but with Lmod being told not to show it in "module avail" some way (not supported) yet, are a different matter. Since they're 'visible' files, the mechanism that picks defaults has to be aware of which modules are marked invisible.

Also, is registering an invisible module as the default legal? It won't show up in 'avail', but if you load versionless, you get it? That's very weird...


K.


    Also: what if all modules for a particular software package have
    been made invisible?


Then the package does not appear with `module av`, i.e. the same behaviour as if the directory were empty. This doesn't stop the package showing up with `module spider` (though I'm of the opinion that it should unless you specify `--show-hidden`, but I failed to build a successful PR for that).


    Robert was already thinking about this, he may have a better view
    on things.


    regards,

    Kenneth




--
Dr. Alan O'Cais
Application Support
Juelich Supercomputing Centre
Forschungszentrum Juelich GmbH
52425 Juelich, Germany

Phone: +49 2461 61 5213
Fax: +49 2461 61 6656
E-mail: [email protected] <mailto:[email protected]>
WWW: http://www.fz-juelich.de/ias/jsc/EN


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------


Reply via email to