We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am new in ent and entimport.
I used to use gen and gorm as orm.
I find that entimport will generate wrong import package in schema file. It uses gorm.io/gen/field instead of subpackage of ent:
entimport
gorm.io/gen/field
Then I tried to remove gen package (using go get gorm.io/gen@none and go clean -cache -modcache) and re-generated code, everything goes well:
go get gorm.io/gen@none
go clean -cache -modcache
And after I get gen again in my another project which need it, entimport will generate wrong import again.
gen
It really bothers me for I am maintain some proj. using gen now, I need both of gen and ent work well.
ent
The text was updated successfully, but these errors were encountered:
Same bug here. :)
Sorry, something went wrong.
up
No branches or pull requests
I am new in ent and entimport.
I used to use gen and gorm as orm.
I find that
entimport
will generate wrong import package in schema file. It usesgorm.io/gen/field
instead of subpackage of ent:Then I tried to remove gen package (using
go get gorm.io/gen@none
andgo clean -cache -modcache
) and re-generated code, everything goes well:And after I get
gen
again in my another project which need it,entimport
will generate wrong import again.It really bothers me for I am maintain some proj. using
gen
now, I need both ofgen
andent
work well.The text was updated successfully, but these errors were encountered: