Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when searching a required module that defines requirement #495

Closed
xdelaruelle opened this issue Jun 1, 2023 · 0 comments
Closed
Labels
Milestone

Comments

@xdelaruelle
Copy link
Member

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
@xdelaruelle xdelaruelle added the bug label Jun 1, 2023
@xdelaruelle xdelaruelle added this to the 5.3.1 milestone Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant