# Auto\_module Lmod Module Dependencies and Full Module Names

**URL:** <https://discourse.openondemand.org/t/auto-module-lmod-module-dependencies-and-full-module-names/5006>\
**Category:** Get Help\
**Created:** [November 2, 2026, 9:49pm UTC](https://discourse.openondemand.org/t/auto-module-lmod-module-dependencies-and-full-module-names/5006 "2026-11-02T21:49:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nvonwolf](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/nvonwolf/32/574_2.png) [@nvonwolf](https://discourse.openondemand.org/u/nvonwolf)\
**Post date:** [November 2, 2026, 9:49pm UTC](https://discourse.openondemand.org/t/auto-module-lmod-module-dependencies-and-full-module-names/5006/1 "2026-11-02T21:49:25Z")

</div>

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`

```bash
$ 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:

```bash
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:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/0/0d49161fa4b9b688809c43121f435deebe2ec9bf.png)

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

```auto
module -q load <%= context.auto_modules_zellij %>

```

```bash
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.

---

<div class="post-metadata">

**Author:** ![nvonwolf](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/nvonwolf/32/574_2.png) [@nvonwolf](https://discourse.openondemand.org/u/nvonwolf)\
**Post date:** [November 2, 2026, 9:52pm UTC](https://discourse.openondemand.org/t/auto-module-lmod-module-dependencies-and-full-module-names/5006/2 "2026-11-02T21:52:56Z")

</div>

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

```json
"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.

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [November 3, 2026, 9:35pm UTC](https://discourse.openondemand.org/t/auto-module-lmod-module-dependencies-and-full-module-names/5006/3 "2026-11-03T21:35:18Z")

</div>

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.
