Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix filtering of duplicate paths for a particular environment variable #4760

Closed
wants to merge 8 commits into from

Conversation

boegel
Copy link
Member

@boegel boegel commented Feb 10, 2025

No description provided.

@boegel boegel added bug fix EasyBuild-5.0 EasyBuild 5.0 labels Feb 10, 2025
@boegel boegel added this to the 5.0 milestone Feb 10, 2025
@boegel boegel requested a review from lexming February 10, 2025 08:59
Comment on lines +3279 to +3281
self.assertEqual(sorted(test_emsp("lib*", ModEnvVarType.PATH)), ["lib", "lib64"])
self.assertEqual(sorted(test_emsp("lib*", ModEnvVarType.PATH_WITH_FILES)), ["lib", "lib64"])
self.assertEqual(sorted(test_emsp("lib*", ModEnvVarType.PATH_WITH_TOP_FILES)), ["lib", "lib64"])
Copy link
Contributor

Choose a reason for hiding this comment

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

this is wrong, if lib64 is symlinked to lib we do not want both paths in the environment

Copy link
Member Author

Choose a reason for hiding this comment

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

There won't be, the logic to handle that is now in EasyBlock.make_module_req, not in expand_module_search_path.

We verify this in test_make_module_req

@boegel
Copy link
Member Author

boegel commented Feb 10, 2025

Alternative fix in:

@boegel
Copy link
Member Author

boegel commented Feb 10, 2025

closing in favor of #4761

@boegel boegel closed this Feb 10, 2025
@boegel boegel deleted the fix_mod_dup_paths branch February 10, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants