Skip to content

update regex used in Lmod.get_setenv_value_from_modulefile#4998

Merged
branfosj merged 2 commits intoeasybuilders:developfrom
boegel:Lmod8765
Sep 13, 2025
Merged

update regex used in Lmod.get_setenv_value_from_modulefile#4998
branfosj merged 2 commits intoeasybuilders:developfrom
boegel:Lmod8765

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Sep 13, 2025

Update regex used in Lmod.get_setenv_value_from_modulefile to take into account setenv{...} rather than setenv(...) produced by module show with Lmod 8.7.60+ (for module files in Tcl syntax)

See also TACC/Lmod#792

I don't think it hurts to make the regex just a little bit more liberal, especially since there's a range of Lmod versions (incl. the most recent versions currently) that produce slightly different show output...

Hat tip to @xdelaruelle who reported that the test_external_dependencies test was failing when using latest Lmod version

…to account 'setenv{...}' rather than 'setenv(...)' produced by 'module show' with Lmod 8.7.60+
@branfosj branfosj enabled auto-merge September 13, 2025 16:24
@branfosj branfosj merged commit 73c498f into easybuilders:develop Sep 13, 2025
37 checks passed
@boegel boegel deleted the Lmod8765 branch September 13, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants