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

fix: python circular deps / recursion error #232

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

MarcusArdelean
Copy link
Contributor

  • Ready for review
  • Follows CONTRIBUTING rules
  • Reviewed by Snyk internal team

What does this PR do?

Some python packages, have circular dependencies. For example apache-airflow requires apache-airflow-providers-common-io which requires apache-airflow. This behaviour results in a recursion error:
RecursionError: maximum recursion depth exceeded while calling a Python object.

This fix makes sure that if a dependency was already analysed, it won't get analysed again, thus avoiding the recursion error

Any background context you want to provide?

This bug was introduced after fixing another issue

What are the relevant tickets?

Slack conversation

Screenshots

Screenshot 2024-02-05 at 13 23 08

@MarcusArdelean MarcusArdelean self-assigned this Feb 5, 2024
@MarcusArdelean MarcusArdelean requested a review from a team as a code owner February 5, 2024 11:28
@MarcusArdelean MarcusArdelean merged commit d391221 into main Feb 5, 2024
21 checks passed
@MarcusArdelean MarcusArdelean deleted the fix/python-circular-dependencies-bug branch February 5, 2024 12:41
@snyksec
Copy link

snyksec commented Feb 5, 2024

🎉 This PR is included in version 2.0.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants