Skip to content

Provided alias not found by subsequent module load #602

@xdelaruelle

Description

@xdelaruelle

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/latest

It is expected that module load foo/1 detect this alias and do nothing (no error message, no environment change as module is already loaded).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions