作者:崔建洋 | 来源:互联网 | 2024-10-28 19:19
What happened?Validation step of generate fails if there are no autogenerated models to generate.Err
What happened?
Validation step of generate fails if there are no autogenerated models to generate.
Error message when running
1
| validation failed: packages.Load: -: no matching versions for query "latest" |
It looks like if there are no autogenerated models to generate, the file doesn't get created, which makes validation fail. It should instead generate a stub file, so validation will pass.
What did you expect?
No validation error to occur
Minimal graphql.schema and models to reproduce
1 2 3
| model:
filename: graph/model/models_gen.go
package: model |
(Default from init)
versions
v0.11.3
1.14.1
- Using go modules
该提问来源于开源项目:99designs/gqlgen
Nope