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
error while running go generate #2211
Comments
gqlgen v0.17.8 has some issue while generating code. use gqlgen v0.14.0 and gqlparser v2.2.0 until fixed. Raised an issue on gqlgen repo 99designs/gqlgen#2211 Signed-off-by: Shivam Mishra <shimish2@cisco.com>
Please create a reproduction repo. |
gqlgen v0.17.8 has some issue while generating code. use gqlgen v0.14.0 and gqlparser v2.2.0 until fixed. Raised an issue on gqlgen repo 99designs/gqlgen#2211 Signed-off-by: Shivam Mishra <shimish2@cisco.com>
Please checkout this changes https://github.com/project-zot/zot/tree/main/pkg/extensions/search and try to run |
gqlgen v0.17.8 has some issue while generating code. use gqlgen v0.14.0 and gqlparser v2.2.0 until fixed. Raised an issue on gqlgen repo 99designs/gqlgen#2211 Signed-off-by: Shivam Mishra <shimish2@cisco.com>
Can you try with 0.17.9, please? |
tried with 0.17.9 and got same error. |
Same issue with the latest version and downgrading |
gqlgen v0.17.8 has some issue while generating code. use gqlgen v0.14.0 and gqlparser v2.2.0 until fixed. Raised an issue on gqlgen repo 99designs/gqlgen#2211 Signed-off-by: Shivam Mishra <shimish2@cisco.com>
Hi, |
gqlgen v0.17.8 has some issue while generating code. use gqlgen v0.14.0 and gqlparser v2.2.0 until fixed. Raised an issue on gqlgen repo 99designs/gqlgen#2211 Signed-off-by: Shivam Mishra <shimish2@cisco.com>
gqlgen v0.17.8 has some issue while generating code. use gqlgen v0.14.0 and gqlparser v2.2.0 until fixed. Raised an issue on gqlgen repo 99designs/gqlgen#2211 Signed-off-by: Shivam Mishra <shimish2@cisco.com>
gqlgen v0.17.8 has some issue while generating code. use gqlgen v0.14.0 and gqlparser v2.2.0 until fixed. Raised an issue on gqlgen repo 99designs/gqlgen#2211 Signed-off-by: Shivam Mishra <shimish2@cisco.com>
gqlgen v0.17.8 has some issue while generating code. use gqlgen v0.14.0 and gqlparser v2.2.0 until fixed. Raised an issue on gqlgen repo 99designs/gqlgen#2211 Signed-off-by: Shivam Mishra <shimish2@cisco.com>
any updates here ? $ go version
go version go1.18 darwin/arm64 |
For our project we started from scratch with Currently it's working with latest gqlgen and go1.18. |
This is not a problem anymore with gqlgen latest versions and Go 1.16.x, 1.17.x, 1.18x. Maybe you can use Or you can re-check re-reading the config page. Definitely this is not something wrong with latest versions, hence I'm closing this. |
I found the cause of this issue. If you running generate with no
This is where it comes from Lines 19 to 23 in 6855b72
Once you add gqlgen.yml everything works well.Probably $.AllDirectives.LocationDirectives var initialises wrong without config file.
|
What happened?
I am getting error while running go generate
ec._fieldMiddleware undefined (type *executionContext has no field or method _fieldMiddleware)
What did you expect?
go generate should run successfully. After downgrading gqlgen to v1.14.0 & gqlparser to v2.2.0, go generate was successful.
versions
go run github.com/99designs/gqlgen version
?v0.17.8
go version
?1.18
The text was updated successfully, but these errors were encountered: