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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user