~bigbes/sr-ht-spec

ref: 46048cbc0ada700c621b7c73d8da07deefde2662 sr-ht-spec/graph/generate.go -rw-r--r-- 936 bytes
46048cbc — Eugene Blikh chore(beads): spec-ejq.2 re-index verified against repo.bigb.es 13 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package graph

// Code generation. gqlgen reads gqlgen.yml in this directory and rewrites
// api/generated.go, model/models_gen.go and the stubs in schema.resolvers.go;
// implementations already in that file are carried through untouched.
//
// It is run through the module graph rather than as `go run
// github.com/99designs/gqlgen@v0.17.36`: gqlgen v0.17.36's own module pins
// golang.org/x/tools v0.9.3, which does not compile under this toolchain, while
// the version this module selects does.
//
// The generator is deliberately not imported anywhere. A blank import under a
// `generate` build tag — which is how git.sr.ht's api/graph does it — would put
// the whole codegen dependency tree (a CLI framework, a markdown renderer, the
// Go analysis packages) into this service's go.mod permanently, for the sake of
// a tool that runs when the schema changes.
//
//go:generate go run github.com/99designs/gqlgen generate