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

go 1.18 (generics) support #99

Open
sgtsquiggs opened this issue Jun 17, 2022 · 1 comment
Open

go 1.18 (generics) support #99

sgtsquiggs opened this issue Jun 17, 2022 · 1 comment

Comments

@sgtsquiggs
Copy link

Currently seeing errors like below when generating against code w/ generics:

2022/06/17 15:15:40 internal error: package "errors" without types was imported from "context"

Maybe useful - here's mockery's commit that enabled generics support: vektra/mockery@dc5539e

@tzachshabtay
Copy link
Contributor

tzachshabtay commented Oct 19, 2022

So this error is not generics specific, it's go 1.18 and up specific, should be fixed by upgrading golang.org/x/tools to 0.1.10 or up: ent/ent#2155 (comment)

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

2 participants