Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix maven recursion issue with parent properties specified in relative path parent pom #3170

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

kzantow
Copy link
Contributor

@kzantow kzantow commented Aug 28, 2024

While performing maven resolution, there is a code path when resolving relative path parent poms which was not tracking recursion, leading to a stack overflow error. This PR adjusts calls such that recursion should be tracked with this and other code paths during resolution. This also corrects the issue to properly resolve variables in this case, when a variable is needed to populate parent properties but that variable is defined in a relative path parent pom.

Fixes: #3163

@kzantow kzantow merged commit 11d77b4 into anchore:main Aug 28, 2024
11 checks passed
@kzantow kzantow deleted the fix/maven-recursion branch August 28, 2024 19:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syft Cause stack overflow [goroutine stack exceeds 1000000000-byte limit]
2 participants