resolvergen: package not found for importPath #1796
Unanswered
alexisvisco
asked this question in
Q&A
Replies: 2 comments
-
I'm experiencing the same on macos with go 1.16.5. Just followed the "getting started" tutorial and I can't generate the models |
Beta Was this translation helpful? Give feedback.
0 replies
-
I believe I was able to find a work around for this issue. I was originally receiving this same issue. I manually deleted the graph/schema.resolvers.go file. Once I did this, I received a new error asking to manually install 2 new packages:
After running those 2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
What did you expect?
I just edited something in the generated schema (type change from string to int) and I wanted to generate the schema again but I got this error with importPath.
By the way my go.mod file has
module gitlab.com/miimosa/lab/gateway-graphql-to-any
the good path and there is the package graph inside the repository because the init command created it.And the verbose flag doesn't help there is no additional information.
Minimal graphql.schema and models to reproduce
The default schema but I changed just a type and I don't think this is the problem.
versions
gqlgen version
? v0.13.0go version
? go1.16.4 linux/amd64Beta Was this translation helpful? Give feedback.
All reactions