-
Notifications
You must be signed in to change notification settings - Fork 6
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
Circular dependencies with generated builder files #1815
Comments
hmm, why is a builder being imported through index.ts? do you know where that's from? that should be fixed? if you set i.e.
added in #1520 |
Maybe the builder isn't being included in As for using |
I believe the fix could be made here: ent/internal/schema/node_data.go Lines 443 to 449 in 47372cf
If the |
This is maybe a little fringe, but I'm hoping it's also an easy fix.
When my core library is packaged and used externally, the generated files' references that go through
index.ts
, will sometimes cause circular dependencies. Specifically, the builders. I've figured out that simple referencing the files directly prevents the loop. I think this stems from a builder being imported throughindex.ts
, so when it also tries to load ents through the same file it won't wait for all of the imports to finish, causing ents to try to load before their bases.The only fix that needs to happen is to just reference the ents directly. I make these changes manually in my builders and everything works. It's just annoying to have to revert changes in git every time I run codegen for the builders (unless they have meaningful changes, which means I make this change manually again).
src/ent/generated/vaulting_entry/actions/vaulting_entry_builder.ts
The text was updated successfully, but these errors were encountered: