-
Notifications
You must be signed in to change notification settings - Fork 110
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(pom): recursive check all nested depManagements with import
scope
#285
fix(pom): recursive check all nested depManagements with import
scope
#285
Conversation
Signed-off-by: knqyf263 <[email protected]>
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.
Do we need this level nest? IIUC, the new test is importing pom as below.
- import-dependency-management/pom.xml
I'm wondering if a two-level nest is enough.
- import-dependency-management/pom.xml
e.g. knqyf263@b8d492f
I'm probably missing something. Please let me know what we want to test with the test case.
These 3 nested depManagements and dependency tag for 1 of them are required to show the need of clone map properties. I found this problem after adding recurcive - we overwrite the properties in the shadow. |
Reverting your change failed the test, meaning the simplified test can catch the edge case you found, right? |
BTW, I wanted to push the commits for testing to my fork, but pushed them to your form by mistake. Sorry 😔 |
I updated PR description to better understand fixes in this PR. I created similar of your test first(f7ec709). But after investigation more i found second problem (overwrite props). Your test only checks first fix (nested
No problem. I will revert these changes when we are done discussing these fixes. |
Signed-off-by: knqyf263 <[email protected]>
226facd
to
7d768df
Compare
Thanks. I now understand what it was testing. As per your explanation, I've added properties causing the overriding bug. Could you take a look? |
I was so focused on example from aquasecurity/trivy#5899 that I didn't even think to just declare new property 😄 This is what i wanted to check in my test. |
Thanks for confirming. |
I wasn't part of that discussion, so I was able to focus on the essential issue 👍 |
Description
This PR corrects 2 related problems:
import
(recursively runningresolveDepManagement
).See updated import dependencyManagement test for more details.
Related Issues