Skip to content

use new ModEnvVarType.STRICT_PATH_WITH_FILES with CMAKE_LIBRARY_PATH environment variable #4858

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

Merged
merged 2 commits into from
May 18, 2025

Conversation

lexming
Copy link
Contributor

@lexming lexming commented Apr 24, 2025

Fixes #4844

Avoid prepending spurious paths to CMAKE_LIBRARY_PATH to default lib directory by adding a new stricter type for ModuleEnvironmentVariable requiring paths/globs that correspond to their real path, i.e. no jumping through symlinks.

Unit test enhanced to catch the reported issue.

…o avoid spurious default paths injected into generated module files
@lexming lexming added this to the 5.0.1 milestone Apr 24, 2025
@boegel boegel changed the title use new ModEnvVarType.STRICT_PATH_WITH_FILES with CMAKE_LIBRARY_PATH environment variable use new ModEnvVarType.STRICT_PATH_WITH_FILES with CMAKE_LIBRARY_PATH environment variable May 7, 2025
Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel boegel merged commit 491b7a3 into easybuilders:develop May 18, 2025
37 checks passed
@lexming lexming deleted the fix-cmake-library-path branch May 19, 2025 07:32
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.

Regression: CMAKE_LIBRARY_PATH=lib added to modulefiles
2 participants