Skip to content

type parameter error #42

@rverma-dev

Description

@rverma-dev

While following the tutorial from this https://entgo.io/blog/2021/10/11/generating-ent-schemas-from-existing-sql-databases
got this error.

❯ go run ariga.io/entimport/cmd/entimport -dialect mysql -dsn "root:usertcp(mysql:3306)/test"
# ariga.io/atlas/sql/schema
../../../go/pkg/mod/ariga.io/atlas@v0.9.1-0.20230119145809-92243f7c55cb/sql/schema/dsl.go:754:17: type parameter requires go1.18 or later (-lang was set to go1.16; check go.mod)
../../../go/pkg/mod/ariga.io/atlas@v0.9.1-0.20230119145809-92243f7c55cb/sql/schema/inspect.go:32:58: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)
../../../go/pkg/mod/ariga.io/atlas@v0.9.1-0.20230119145809-92243f7c55cb/sql/schema/inspect.go:33:57: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)
# github.com/hashicorp/hcl/v2
../../../go/pkg/mod/github.com/hashicorp/hcl/v2@v2.13.0/diagnostic_typeparams.go:22:22: type parameter requires go1.18 or later (-lang was set to go1.16; check go.mod)
../../../go/pkg/mod/github.com/hashicorp/hcl/v2@v2.13.0/diagnostic_typeparams.go:22:24: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)

go version go1.19.5 darwin/arm64

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