Track gqlgen as a Go tool so make generate runs

go run needed gqlgen's CLI dependencies in go.sum, and go mod tidy
drops them because nothing in the module imports them. A tool
directive records them, and go tool runs the pinned version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-14 22:47:27 +01:00
co-authored by Claude Opus 5.5
parent c7b60578e1
commit 6b14a96261
3 changed files with 6 additions and 1 deletions
+3
View File
@@ -55,6 +55,7 @@ require (
github.com/tidwall/sjson v1.2.5 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.3.0 // indirect
github.com/urfave/cli/v3 v3.11.0 // indirect
go.uber.org/mock v0.5.0 // indirect
go.yaml.in/yaml/v4 v4.0.0-rc.2 // indirect
golang.org/x/arch v0.20.0 // indirect
@@ -67,3 +68,5 @@ require (
golang.org/x/tools v0.49.0 // indirect
google.golang.org/protobuf v1.36.12 // indirect
)
tool github.com/99designs/gqlgen