-
-
Notifications
You must be signed in to change notification settings - Fork 364
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 when resolve
needs ModuleRef
when likely cyclic references
#3878
Conversation
resolve
needs ModuleRef
when likely cyclic references
…turn an error when cyclic. bug: foo.__.bar patterns break this though.
I added some cycle detection for the direct dependencies but I'm stuck on cases when it's You can run the tests with
It's showing these 2 false positives because those are not cycles. These are the only noncyclic |
The cleanup looks good to me |
Thanks @myyk! I'll close out the bounty over whatsapp |
This completes #3715 with all the cycle cases I could think of.
It also touches
resolveDirectChildren
where I made some changes that I would help with readability. I thought I was going to need to build on those but didn't. These can be reverted if it's unwanted.