Skip to content

Allow empty string in modextrapaths#4799

Merged
lexming merged 2 commits intoeasybuilders:5.0.xfrom
appolloford:5.0.x
Mar 7, 2025
Merged

Allow empty string in modextrapaths#4799
lexming merged 2 commits intoeasybuilders:5.0.xfrom
appolloford:5.0.x

Conversation

@appolloford
Copy link
Copy Markdown
Contributor

@appolloford appolloford commented Mar 7, 2025

After PR #4774, when empty string is used in modextrapaths, for example modextrapaths = {'PATH': ''} in dotNET-Core-8.0.302.eb, easybuild does not add paths key into env_var_opts and fails silently. This induces error when checking paths key existence. This PR tries to make sure paths is added when empty string is used.

@branfosj branfosj added the EasyBuild-5.0-blocker Blocker for EasyBuild 5.0 label Mar 7, 2025
@branfosj branfosj added this to the 5.0 milestone Mar 7, 2025
Copy link
Copy Markdown
Contributor

@lexming lexming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reporting this issue. The case with an empty string is indeed not handled properly. See my suggested solution below

Comment thread easybuild/framework/easyblock.py Outdated
@lexming lexming merged commit 8d395ef into easybuilders:5.0.x Mar 7, 2025
37 checks passed
@boegel boegel added bug fix EasyBuild-5.0 EasyBuild 5.0 and removed EasyBuild-5.0-blocker Blocker for EasyBuild 5.0 labels Mar 8, 2025
@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 8, 2025

I've enhanced the tests to cover this use case in:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants