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

Detect recursively referencing requirements files #12877

Merged
merged 8 commits into from
Sep 4, 2024

Conversation

hellozee
Copy link
Contributor

@hellozee hellozee commented Jul 26, 2024

Fixes #12653

I am not sure if I am allowed to put out patches for issues with "needs triage" labels, but seems like simple fix and I got to scratch my own itch too.

Also I am not exactly sure that this is how it should be fixed, but it does catch the files with the problem in the correct order. Had to convert the files to absolute path, else in case of nested references which goes up the directory hierarchy it can't catch the recursion.

@pradyunsg
Copy link
Member

I am not sure if I am allowed to put out patches for issues with "needs triage" labels, but seems like simple fix and I got to scratch my own itch too.

It absolutely is! :)

@ichard26 ichard26 self-requested a review August 23, 2024 04:19
@notatallshaw notatallshaw added this to the 24.3 milestone Aug 23, 2024
@hellozee
Copy link
Contributor Author

hellozee commented Sep 3, 2024

Sorry rebased the PR on main without pulling first. Fortunately, the extra patch was a trivial one 😓

@uranusjr uranusjr merged commit 111eed1 into pypa:main Sep 4, 2024
34 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recursive loops in requirements files not detected
4 participants