99designs / 99designs/gqlgen

Command doesn't work after upgrade

Đang mở
#3,169 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
10.8k
Fork
1.3k
Merge trung bình
2 ngày 36 phút
Pull request đã merge (30 ngày)
26

Mô tả

### What happened?
My project just did a library upgrade. The gqlgen's version upgrade from 0.13.0 -> 0.17.49, after upgrade I found some errors comes from graphql genrated.go. The error looks like this
```
../../graph/generated/generated.go:3734:2: not enough arguments in call to out.Dispatch
have ()
want (context.Context)
```
Then I tried to regenerate all related files. But the gqlgen give me this error

```
gqlgen.yml already exists
exit status 1
```
When I change the command from init to **generate**, there is new error
`generating core failed: unable to load $SOMEPATH/graph/model - make sure you're using an import path to a package that exists`
I'm not sure if I should update the path itself or something else?

### What did you expect?
The tool can generate right go files for graphql

### Minimal graphql.schema and models to reproduce
```
"The `Status` type, represent job execution status"
type Status {
"Job running user"
user: String!
.....
}
```

### versions
- `go run github.com/99designs/gqlgen version`? 0.17.49
- `go version`? go1.22.4

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.