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

Skip to content

go generate ./ent fails due to incompatible tablewriter version #4464

@ArnoldVanN

Description

@ArnoldVanN

The latest Ent version (v0.14.5) uses an older version of github.com/olekukonko/tablewriter, which is incompatible with newer versions used by other dependencies in my project.

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

go generate ./ent should generate code

Expected Behavior 🤔

go generate ./ent fails with this error:

# entgo.io/ent/cmd/internal/printer
/home/arno/go/pkg/mod/entgo.io/[email protected]/cmd/internal/printer/printer.go:50:8: table.SetAutoFormatHeaders undefined (type *tablewriter.Table has no field or method SetAutoFormatHeaders)
/home/arno/go/pkg/mod/entgo.io/[email protected]/cmd/internal/printer/printer.go:51:8: table.SetHeader
...
ent/generate.go:3: running "go": exit status 1

Your Environment 🌎

Tech Version
Go 1.25
Ent 0.14.5

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