Hi,
I am trying to upgrade environment modules and I am running into an issue with the variant feature.
Java version strings contain the "+" plus sign, for example: openjdk-hs-17.0.1+12
When I load it with --debug, I get:
DEBUG setModuleVersSpec: Set module 'openjdk-hs/17.0.1' (escglob 'openjdk-hs/17.0.1'), module name 'openjdk-hs' (re ''), module root 'openjdk-hs', version cmp 'eq', version(s) '', variant(s) '{12 1 1}' and module name version spec 'openjdk-hs/17.0.1' for argument 'openjdk-hs/17.0.1+12'
..
ERROR: Unable to locate a modulefile for 'openjdk-hs/17.0.1+12'
I can see the file exists and load just fine with the older version of modules, but not when I upgrade to 5.0.1.
In the code, I see the split on the "+" sign happening in modules/tcl/modspec.tcl/setModuleVersSpec line 1561<https://github.com/cea-hpc/modules/blob/48eeb0873014a033791194b99a6521b5daee794d/tcl/modspec.tcl#L1561>, so it looks baked in and unavoidable.
I am trying to avoid any disruption to the users, does anyone have advice on how to approach this problem?
Or maybe add something non-disturbing to my existing installation so the upgrade could be seamless, and my users would not have to modify their code?
Thanks,
Martin
|