Skip to content

Symbol targeting directory not resolved on whatis/paths if implicit_default is disabled #294

@xdelaruelle

Description

@xdelaruelle

When a symbolic version targets a directory:

$ module use modules/testsuite/modulefiles
$ module avail -l loc_dv7/default
- Package/Alias -----------------------.- Versions --------.- Last mod. -------
/path/to/modules/testsuite/modulefiles:
loc_dv7/2.0/                            default

If implicit_default configuration is disabled

$ module config implicit_default 0

A different result is obtained on whatis sub-command whether symbolic name or target is passed as argument:

$ module whatis loc_dv7/default
ERROR: No default version defined for 'loc_dv7/2.0'
$ module whatis loc_dv7/2.0
----- /path/to/modules/testsuite/modulefiles -----
     loc_dv7/2.0/1.0: loc_dv7/2.0/1.0

Same goes for the paths sub-command:

$ module paths loc_dv7/2.0
/path/to/modules/testsuite/modulefiles/loc_dv7/2.0/1.0
$ module paths loc_dv7/default
$

Would expect the same result whatever the argument is (symbol or actual target)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions