Validation step of generate fails if there are no autogenerated models to generate
- Lenguaje dominante
- Go
- Estrellas
- 10.8k
- Forks
- 1.3k
- Merge medio
- 2 d 36 min
- PR fusionados (30 d)
- 26
Descripción
### What happened?
Validation step of generate fails if there are no autogenerated models to generate.
Error message when running `gqlgen generate`
```
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
```
model:
filename: graph/model/models_gen.go
package: model
```
(Default from init)
### versions
- `gqlgen version` v0.11.3
- `go version` 1.14.1
- Using go modules
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.