-
Notifications
You must be signed in to change notification settings - Fork 571
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
Forbid dependency cycles #8389
Forbid dependency cycles #8389
Conversation
|
I'd like to postpone this PR. I can imagine that the performance will suffer for configurations with many dependencies with this PR . @N-o-X @Al2Klimov Any objections? |
You seem to be wrong. v2.12.0
#8389
|
I am glad I am 😆 |
@cla-bot check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks useful in general, but I'd change a few things:
- Don't use signals, just call the functions directly. I don't see a benefit in using them here, it just adds another indirection.
- Error message could be changed to a multi-line format. This should make it more readable in case of longer cycles.
- Also check for newly introduces cycles when adding dependencies via the API.
d0ac25c
to
a7ce8e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include an up-to-date example in the description of how the error messages look like now, including how it looks like when attempting to add a cycle at runtime.
a7ce8e1
to
3d9e03c
Compare
3d9e03c
to
5b63407
Compare
... at config loading time.