Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@4xoc
Copy link

@4xoc 4xoc commented Oct 30, 2025

When generating code using this approach one can define an alternative Target dir to store the Ent schema. However, this breaks schema generation when using the sql/globalid feature. The missing globalid.go file is silently ignored and new IDs are being generated that differ from the actual schemal.

This PR fixes the ent schema command to actually facilitate the option to define an alternative target dir, using the correct globalid.go file and returning an accurate schema.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant