Auto_module Lmod Module Dependencies and Full Module Names

When using auto_modules in form.yml it correctly finds modules but it does not correctly populate the value that needs to be fed to module load. It also does not list the full module name.

For instance I have a module zellij/0.45.1-2026 that first requires the module custom/2026a to be loaded. Here is what it looks like in module spider

$ module spider zellij/0.45.1-2026a

--------------------------------------------------------------------------------------------
  zellij: zellij/0.45.1-2026a
--------------------------------------------------------------------------------------------

    You will need to load all module(s) on any one of the lines below before the "zellij/0.45.1-2026a" module is available to load.

      custom/2026a

    Help:
      For help contact your site administrators.


So a correct load command would be:

module load custom/2026a zellij/0.45.1-2026a

using auto_modules_zellij in form.yml correctly finds the module but truncates the label as show here:

However when used in a templates/*.sh.erb script you get a value such as:

module -q load <%= context.auto_modules_zellij %>
module -q load zellij/0.45.1

This will not correctly load as the module dependencies are missing.

So I have 3 questions:

  1. Is it possible to fix the lack of module dependencies?
  2. Is it possible to show the full version of the module?
  3. Is it possible to use the full name/version of the module in the value? You can see from my module load example above that the -2026a got stripped from the value as well.

To add on here is the snippet of the json file with all the module information that OOD looks at:

"zellij":{"\/fs1\/software\/sstack\/rhel_10-x86_64\/stacks\/custom\/2026a\/modules\/zellij\/0.45.1-2026a.lua":{"pathA":{"\/fs1\/software\/sstack\/rhel_10-x86_64\/stacks\/custom\/2026a\/packages\/0.45.1-2026a":1},"fullName":"zellij\/0.45.1-2026a","parentAA":[["custom\/2026a"]],"family":"zellij","pV":"000000000.000000045.000000001.*zfinal-.000002026.*a.*zfinal","help":"For help contact your site administrators.","whatis":["Name: Zellij","Version: 0.45.1","Target: x86_64","Short description: Zellij is a workspace aimed at developers, ops-oriented people and anyone who loves the terminal. Similar programs are sometimes called Terminal Multiplexers."],"hidden":false,"mpath":"\/fs1\/software\/sstack\/rhel_10-x86_64\/stacks\/custom\/2026a\/modules","Version":"0.45.1","wV":"000000000.000000045.000000001.*zfinal-.000002026.*a.*zfinal"}}

You can see that parentAA contains the dependencies that need to be loaded before the zellij module can be loaded.

The dependencies may be taken care of in later versions (I’ll have to check on that), but the version being off seems to be a bug, I’ll look into it more and report back.