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
+1 -1
View File
@@ -32,7 +32,7 @@ check-web:
# Rewrites internal/graph/generated.go and internal/graph/model/models_gen.go
# from internal/graph/schema/*.graphql. Resolver bodies are preserved.
generate:
go run github.com/99designs/gqlgen generate
go tool gqlgen generate
dev:
docker compose up --build