On 5.3.0, an error is obtained when searching for a module defined as requirement with extra specifier mechanism, whereas this module defines a requirement (and is the sole module to define this requirement).
$ module use /path/to/modulefiles
$ cat /path/to/modulefiles/bar/1.0
#%Module
module load foo/1.0
$ module avail require:bar/1.0
ERROR: key "bar/1.0" not known in dictionary
while executing
"dict get $::g_scanModuleElt $elt $modspec"
(procedure "getModMatchingExtraSpec" line 13)
invoked from within
"getModMatchingExtraSpec $spec_xt_list"
(procedure "filterExtraMatchSearch" line 58)
invoked from within
"filterExtraMatchSearch $mod found_list versmod_list"
(procedure "getModules" line 283)
invoked from within
"getModules $dir $mod $show_mtime $search_filter $show_filter"
(procedure "cmdModuleAvail" line 49)
invoked from within
"$cmdprocname {*}$cmdopts {*}$args"
(procedure "module" line 185)
invoked from within
"{*}$execcmdlist"
Please report this issue at https://github.com/cea-hpc/modules/issues
On 5.3.0, an error is obtained when searching for a module defined as requirement with extra specifier mechanism, whereas this module defines a requirement (and is the sole module to define this requirement).