~bigbes/sr-ht-spec

ref: 3a56ee617a14a82d7d2d430173c84474444bc111 sr-ht-spec/graph/generate.go -rw-r--r-- 936 bytes
3a56ee61 — Eugene Blikh deps: bump sr-ht-ecore for the slog panic reporter 9 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