Skip to content

Fix stack overflow error for circular dependencies#54

Merged
jachiaram merged 1 commit into
developfrom
bugfix/circular-pom-resolution
Mar 9, 2026
Merged

Fix stack overflow error for circular dependencies#54
jachiaram merged 1 commit into
developfrom
bugfix/circular-pom-resolution

Conversation

@johannesduesing

Copy link
Copy Markdown
Member

#52 reported an issue for certain configurations of circular dependencies, where MARIN would run into infinite loops. This PR fixes the issue by using the resolution contexts to keep track of artifacts that are currently being resolved, but not yet finished resolving. This (plus the fact that artifact objects are unique per identifier within their context) allows us to not enter circular resolution loops.

The particular identifier that was causing problems in #52 has been added as a test case for this functionality.

@johannesduesing johannesduesing self-assigned this Mar 9, 2026
@johannesduesing johannesduesing added the bug Something isn't working label Mar 9, 2026

@jachiaram jachiaram left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good, I was thinking about a similar solution when I saw the issue.

@jachiaram jachiaram merged commit 5c304a9 into develop Mar 9, 2026
1 check passed
@johannesduesing johannesduesing deleted the bugfix/circular-pom-resolution branch March 10, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants