-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
gqlgen init or generate command exits 1 on go 1.24.0 #3531
Comments
It seems that if we upgrade golang.org/x/tools, then gqlgen init will exit successfully: ❯ go version
go version go1.24.0 darwin/arm64
❯ git clone https://github.com/99designs/gqlgen
Cloning into 'gqlgen'...
...
❯ cd gqlgen
#### fail....
❯ go run . init
Creating gqlgen.yml
Creating graph/schema.graphqls
Creating server.go
Generating...
exit status 1
#### cleanup
❯ git clean -xfd
Removing gqlgen.yml
Removing graph/
#### upgrade golang.org/x/tools
❯ go get -u golang.org/x/tools && go mod tidy
go: upgraded golang.org/x/mod v0.20.0 => v0.23.0
go: upgraded golang.org/x/net v0.33.0 => v0.35.0
go: upgraded golang.org/x/sys v0.29.0 => v0.30.0
go: upgraded golang.org/x/tools v0.24.0 => v0.30.0
❯ go run . init
Creating gqlgen.yml
Creating graph/schema.graphqls
Creating server.go
Generating...
Exec "go run ./server.go" to start GraphQL server
#### success!
❯ echo $?
0 |
This issue should be fixed by #3528 |
Can you please see if #3537 fixes your issue (included in v0.17.65)? |
@StevenACoffman #3537 fixes this issue. Thank you! |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
It seems that gqlgen init or generate command exits 1 on go 1.24.0
steps to reproduce
test.sh
environment
The text was updated successfully, but these errors were encountered: