Open
Description
Describe the bug
When havinging a module foo/1.0
and foo/variant/1.0
and setting the version divider at the first slash, I expect the following to work (LMOD_EXACT_MATCH=no):
ml foo/1
ml foo/variant/1
Line 1 worked up the 8.7.55 and breaks from 8.7.56 onwards (inlcuding the most recent version 8.7.64). Possibly related to the works of #740
$ ml foo/1
Lmod has detected the following error: The following module(s) are unknown: "foo/1"
Line 2 works for all versions 8.7.x
To Reproduce
# using 8.7.55
mkdir -p testing/foo/variant
touch testing/foo/1.0.lua testing/foo/variant/1.0.lua
touch testing/foo/.version
ml use testing
# works
ml foo/1
ml purge
# switch to 8.7.64
pushd $LMOD_ROOT
ln -snf 8.7.64 lmod
popd
# fails
ml foo/1
Expected behavior
No change of behaviour related to ml foo/1
when using v8.7.56 and above.
Desktop (please complete the following information):
- OS: Linux
- Linux distribution: Ubuntu 24.04
- Lmod Version: 8.7.55, 8.7.56, 8.7.64
$ module --miniConfig
Modules based on Lua: Version 8.7.64 2025-07-08 12:40 -06:00
by Robert McLay mclay@tacc.utexas.edu
Lmod Version: 8.7.64
Lua Version: 5.4
MODULEPATH: /usr/local/lmod/lmod/modulefiles:/home/user/lmod_dev/common
Changes from Default Configuration
----------------------------------
Name Where Set Default Value
---- --------- ------- -----
LFS_VERSION D 1.6.3 1.8.0
LMOD_ADMIN_FILE E /home/user/lmod_dev/lmod/etc/admin.list /home/user/lmod_dev/admin.list
LMOD_CONFIG_DIR E /etc/lmod /home/user/lmod_dev
LMOD_CONFIG_LOCATION StdPkg no /home/user/lmod_dev/lmod_config.lua
LMOD_HAVE_LUA_TERM C no yes
LMOD_IGNORE_CACHE E no yes
LMOD_MODULEPATH_INIT E /home/user/lmod_dev/lmod/lmod/init/.modulespath /home/user/lmod_dev/modulespath_dev
LMOD_PACKAGE_PATH D nil /home/user/lmod_dev/site/cluster
LMOD_PAGER C less /usr/bin/less
LMOD_RC E /home/user/lmod_dev/site/cluster/lmodrc.lua
LMOD_SITEPACKAGE_LOCATION Other /home/user/lmod_dev/lmod/8.7.64/libexec/SitePackage.lua /home/user/lmod_dev/site/cluster/SitePackage.lua
LMOD_SITE_NAME E false Cluster
LMOD_SYSTEM_DEFAULT_MODULES D __unknown__ <empty>
LMOD_SYSTEM_NAME E false Cluster
LMOD_TCLSH C tclsh /usr/bin/tclsh
LMOD_USE_DOT_CONFIG_ONLY C no yes
MODULEPATH_ROOT E /home/user/lmod_dev/modulefiles
PATH_TO_LUA C lua /usr/bin/lua5.4
Where Set -> D: default, E: environment, C: configuration
lmod_cfg: lmod_config.lua SitePkg: SitePackage StdPkg: StandardPackage
Other: Set somewhere outside of normal locations
Metadata
Metadata
Assignees
Labels
No labels