When a binary is shipped with gqlgen as one of its dependencies, with the follow-schema option set in the config, the following error is encountered:
open <your file structure path>/github.com/99designs/gqlgen@v0.17.42/codegen/root_.gotpl: no such file or directory
What did you expect?
The fix for issue 2260 offers the ability to pass in a TemplateFS option. However, that option is not being honored by the generateRootFile function. I would expect the same logic that was implemented here to apply in generateRootFile.
versions
go run github.com/99designs/gqlgen version?
v0.17.42
What happened?
When a binary is shipped with gqlgen as one of its dependencies, with the follow-schema option set in the config, the following error is encountered:
open <your file structure path>/github.com/99designs/gqlgen@v0.17.42/codegen/root_.gotpl: no such file or directory
What did you expect?
The fix for issue 2260 offers the ability to pass in a
TemplateFS
option. However, that option is not being honored by the generateRootFile function. I would expect the same logic that was implemented here to apply ingenerateRootFile
.versions
go run github.com/99designs/gqlgen version
? v0.17.42go version
? go 1.22.4