-
Notifications
You must be signed in to change notification settings - Fork 117
[bugfix] Fixes find_modules() behaviour with flat module scheme when an environment is a substring of another one
#1961
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
Conversation
…nment - not multiple.
|
Can I test this patch? |
|
ok to test |
Codecov Report
@@ Coverage Diff @@
## master #1961 +/- ##
==========================================
- Coverage 87.91% 87.86% -0.06%
==========================================
Files 50 50
Lines 8638 8668 +30
==========================================
+ Hits 7594 7616 +22
- Misses 1044 1052 +8
Continue to review full report at Codecov.
|
|
ok to test |
vkarak
left a comment
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.
Thanks @casparvl for your fix! It was indeed a bug. I think it has been a leftover from an earlier implementation that assumed lists. That's why you see environs in the for loop.
find_modules() behaviour with flat module scheme when an environment is a substring of another one
victorusu
left a comment
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.
lgtm
If you use
find_moduleswith an environment_mapping (as typically done in a flat module naming scheme) where one environment is a substring of the other (e.g.fossandfosscuda),find_moduleswill consider any regex specified forfosscudato also be valid forfoss. This PR fixes that.Fixes #1960