cea-hpc / modules

Environment Modules: provides dynamic modification of a user's environment
http://modules.sourceforge.net/
GNU General Public License v2.0
668 stars 102 forks source link

require/incompat extra specifiers match module command with --not-req option #498

Closed xdelaruelle closed 1 year ago

xdelaruelle commented 1 year ago

When a module load, unload, switch, try-load or load-any commands in modulefiles use --not-req option, such commands are included in incompat or require extra specifiers result.

As the --not-req is mentionned, specified module should not be considered as an incompatibility or a requirement.

$ cat /path/to/modulefiles/foo/1.0
#%Module
module load --not-req bar/1.0
$ module use /path/to/modulefiles
$ module avail -t load:bar/1.0
/path/to/modulefiles:
foo/1.0
$ module avail -t require:bar/1.0
/path/to/modulefiles:
foo/1.0