-
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
Missing files when using go mod vendor #2081
Comments
Error message$ go run github.com/99designs/gqlgen init
Creating gqlgen.yml
Creating graph/schema.graphqls
Creating server.go
Generating...
reloading module info
reloading module info
reloading module info
merging type systems failed: unable to build object definition: unable to find type: github.com/99designs/gqlgen/graphql/introspection.EnumValue
exit status 1 ObjectiveGenerate auto-generated model files from a schema using Diagnosis
Workaround
Caveats Not sure yet what the impact will be, when you attempt to do UPDATE: Running |
Did this start happening with v0.17.2? I just upgraded my packages and this started happening. |
I had to versions
|
You can also create a
|
I feel like the documentation needs an update if this is the preferred method. All projects at my job must be vendered. I was able to unblock myself using this issue. |
@thesolution can you PR? |
@frederikhors I haven't before. Should I create an issue for a documentation update first or just put that info in the PR? |
Create a PR. Someone on the team will consider whether to merge it. |
What happened?
When using
go mod vendor
to vendor dependencies some files are not included like everything ingraphql/introspection
directory.This causes an error like:
Related to golang/go#26366
What did you expect?
All files required by
api.Generate
to be included invendor/github.com/99designs/gqlgen
directoryMinimal graphql.schema and models to reproduce
Any schema
versions
github.com/99designs/gqlgen v0.17.2
go version go1.17.8 darwin/arm64
go version go1.18 darwin/arm64
The text was updated successfully, but these errors were encountered: