Skip to content

wrong import package #46

Description

@thorn-jmh

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions