Skip to content
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

Prevent infinite loops when generating source paths #101

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

skorulis-ap
Copy link
Collaborator

I found that it was possible for loops to be created in our dependency trees. This isn't an issue for the graph building as it can break the loops but when there is a failure and we try to print the path to the problematic dependency we end up in an infinite loop.

This breaks the loop and also prevents adding a source for a dependency which came from the input.

@skorulis-ap skorulis-ap marked this pull request as ready for review December 11, 2023 07:26
@skorulis-ap skorulis-ap requested a review from a team December 11, 2023 21:14
Copy link
Collaborator

@bradfol bradfol left a comment

Choose a reason for hiding this comment

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

🙏

@skorulis-ap skorulis-ap merged commit 62bfe7d into main Dec 12, 2023
2 checks passed
@skorulis-ap skorulis-ap deleted the skorulis/source-loop branch December 12, 2023 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants