~bigbes/sr-ht-spec

ref: 6e59bf0ffc7d16f509dad40063d35bf8f6fb98a7 sr-ht-spec/graph/generate.go -rw-r--r-- 936 bytes
6e59bf0f — Eugene Blikh api: advertise an empty scope list, not null 8 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