Hi All,
The next release of Environment Modules (v5.7) will introduce a new
modulefile command: modulepath-ignore.
Modulepath directories sometimes hold files that are not modulefiles —
helper scripts sourced by modulefiles, or software installation files when
modulefiles are mixed with the software trees they describe. With
modulepath-ignore, modulepath maintainers can describe from rc files such
content to ignore when searching for modulefiles.
Ignored files and directories are handled as if they do not exist: they are
not checked, not walked down, not reported and not recorded in the
modulepath cache file. Cache build time and size are thus kept proportional
to the number of actual modulefiles.
Patterns follow the same syntax and behavior as git .gitignore files. For
instance, to ignore every .tcl file and the whole content of the soft
directory, add to the .modulerc file at the root of the modulepath:
modulepath-ignore *.tcl soft/
Negated patterns switch to an ignore all, accept some logic. For instance,
to only take files with the .mod extension into account:
modulepath-ignore * !*/ !*.mod
The feature is controlled by the new modulepath_ignore configuration option
(enabled by default), and patterns can be skipped for one command execution
with the --no-modulepath-ignore command line switch, which helps finding
out whether a module is missing because it is ignored.
Full details are available in the migration guide:
https://modules.readthedocs.io/en/latest/MIGRATING.html#ignore-files-in-modulepath
Best regards,
Xavier
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#46): https://lists.hpsf.io/g/modules-interest/message/46
Mute This Topic: https://lists.hpsf.io/mt/120916753/10150481
Group Owner: mod...@li...
Unsubscribe: https://lists.hpsf.io/g/modules-interest/unsub [mod...@li...]
-=-=-=-=-=-=-=-=-=-=-=-
|