Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias targeting directory not resolved on whatis/paths if implicit_default is disabled #295

Closed
xdelaruelle opened this issue Sep 20, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@xdelaruelle
Copy link
Member

When a module alias targets a directory:

$ module use modules/testsuite/modulefiles.deep
$ module avail -l modtr/al5
- Package/Alias -----------------------.- Versions --------.- Last mod. -------
/path/to/modules/testsuite/modulefiles.deep:
modtr/al5 -> modtr/dir4                 fld                 
$ module avail -l modtr/dir4
- Package/Alias -----------------------.- Versions --------.- Last mod. -------
/path/to/modules/testsuite/modulefiles.deep:
modtr/dir4/                             fld                 
modtr/dir4/al7 -> modtr/dir5/subdir/mod5.0madj              
modtr/dir4/al8 -> modtr/dir5/sfld       dadj                
modtr/dir4/mod4.0                                           2019/08/30 07:43:24

If implicit_default configuration is disabled

$ module config implicit_default 0

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

$ module whatis modtr/al5
ERROR: No default version defined for 'modtr/dir4'
$ module whatis modtr/dir4
----- /path/to/modules/testsuite/modulefiles.deep -----
   modtr/dir4/mod4.0: modtr/dir4/mod4.0
modtr/dir5/subdir/mod5.0: modtr/dir5/subdir/mod5.0

Same goes for the paths sub-command:

$ module paths modtr/al5
$ module paths modtr/dir4
/path/to/modules/testsuite/modulefiles.deep/modtr/dir4/mod4.0
/path/to/modules/testsuite/modulefiles.deep/modtr/dir5/subdir/mod5.0
$

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

@xdelaruelle xdelaruelle self-assigned this Sep 20, 2019
@xdelaruelle xdelaruelle added this to the 4.3.1 milestone Sep 20, 2019
xdelaruelle added a commit to xdelaruelle/modules that referenced this issue Sep 20, 2019
xdelaruelle added a commit to xdelaruelle/modules that referenced this issue Sep 20, 2019
xdelaruelle added a commit to xdelaruelle/modules that referenced this issue Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant