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

type parameter error #42

Open
rverma-dev opened this issue Feb 1, 2023 · 0 comments
Open

type parameter error #42

rverma-dev opened this issue Feb 1, 2023 · 0 comments

Comments

@rverma-dev
Copy link

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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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

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

1 participant