-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Embed generation with plugins fails #2204
Comments
Thanks for the bug report! I see the issue. I'll make a PR. |
Wow, that was fast, looking forward to using the next release :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
When the config file includes generating the sources in the same directory where the schema is, and includes a plugin generating additional sources, like federation, it triggers an error during the validation phase:
validation failed: packages.Load: graphql_gen.go:298:29: pattern federation/directives.graphql: no matching files found
And the generated code contains the following in the line 298
Here's the config:
What did you expect?
To run as in the version v0.17.5, I think this error was introduced by the embedded PR #2119
Minimal graphql.schema and models to reproduce
Happens with any schema using federation
versions
go run github.com/99designs/gqlgen version
? v0.17.8go version
? go version go1.18.2 darwin/amd64The text was updated successfully, but these errors were encountered: