Skip to content
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

wrong import package #46

Open
thorn-jmh opened this issue Jul 5, 2023 · 3 comments
Open

wrong import package #46

thorn-jmh opened this issue Jul 5, 2023 · 3 comments

Comments

@thorn-jmh
Copy link

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:

image-20230705151834383

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:

image-20230705151159413

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 of gen and ent work well.

@athenakia
Copy link

athenakia commented Jul 14, 2023

Same bug here. :)

1 similar comment
@ga845937
Copy link

Same bug here. :)

@ferluk
Copy link

ferluk commented Nov 15, 2024

up

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

No branches or pull requests

4 participants