-
Notifications
You must be signed in to change notification settings - Fork 204
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
Bug fix for modpath_extensions_for function. #1474
Bug fix for modpath_extensions_for function. #1474
Conversation
Updating the regex within the modules modpath_extensions_for function to find the module dependencies when using lua module files.
Automatic reply from Jenkins: Can I test this? |
Jenkins: ok to test |
modtxt = self.read_module_file(mod_name) | ||
useregex = re.compile(r"^\s*module\s+use\s+(\S+)", re.M) | ||
exts = useregex.findall(modtxt) | ||
# Should be module show so as to catch conditional loads. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not loads, use statements
@t-brown: this is only a partial fix, right? there also was the issue where the |
EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2338/console for more details). This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
@t-brown: what's the status of this? you mentioned that there still was some problem here? |
This will need to be revisited thoroughly when #1472 is merged in, since they're getting in the way of each other. @t-brown: I propose I take this over from you, since things just got more complicated (only a little bit though)? |
It seems that when using
The module files generated at the second hierarchical level include it's parent. For example,
and
So when build
If you comment out the |
@t-brown: hah! OK, that is very wrong indeed, the This is supposed to be handled by https://github.com/hpcugent/easybuild-framework/blob/master/easybuild/framework/easyblock.py#L901, which (through So, that means the What does a debug log for e.g. |
@t-brown: ping? |
@t-brown: did you have any time for this? If not, I'll probably try and get it fixed myself (on top of your work/feedback). |
@t-brown final ping before I fork this off myself to get it fixed for EB v2.8.0 (i.e., this week) |
Updating the regex within the modules modpath_extensions_for
function to find the module dependencies when using lua module
files.
This addresses issue #1473