mirror of
https://github.com/envmodules/modules.git
synced 2026-06-07 00:25:05 +08:00
Fix getModules procedure to correctly handle virtual modules when the sub-directories they refer to does not exist on the filesystem. For instance 'modvirt/dir0/sub1/1.0' may be a virtual module defined with module-virtual modvirt/dir0/sub1/1.0 .common in 'modvirt/.modulerc' where modvirt/dir0 and modvirt/dir0/sub1 do not correspond to existing directories on the filesystem. Now getModules will define among its result virtual directory entries to make the deep virtual modules findable when, for instance searching a default version. Add non-regression tests in 20-locate and 80-deep suites for the deep virtual module use-case.