-
Notifications
You must be signed in to change notification settings - Fork 118
Closed
Description
Using the new provide modulefile command, once a module with such alias is loaded, the provided alias is not found by module when trying to load it afterward.
$ ml av -t
/path/to/modulefiles:
bar/1
foo/2
$ ml show bar/1
-------------------------------------------------------------------
/path/to/modulefiles/bar/1:
provide foo/1
-------------------------------------------------------------------
$ ml bar/1
$ module load foo/1
ERROR: Unable to locate a modulefile for 'foo/1'
$ echo $__MODULES_LMALTNAME
bar/1&al|foo/1&as|bar/default&as|bar/latestIt is expected that module load foo/1 detect this alias and do nothing (no error message, no environment change as module is already loaded).