From 682a58dd6af5fda53509fbf4cfa45d23b5bb1c86 Mon Sep 17 00:00:00 2001 From: Steve Coffman Date: Sun, 10 Dec 2023 13:51:40 -0500 Subject: [PATCH] Add go generate for examples so contributors never forget (#2859) Signed-off-by: Steve Coffman --- main.go | 2 ++ plugin/plugin.go | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index e0420d15028..f3b9f4400ef 100644 --- a/main.go +++ b/main.go @@ -1,5 +1,7 @@ package main +//go:generate go generate ./_examples/... + import ( "bytes" _ "embed" diff --git a/plugin/plugin.go b/plugin/plugin.go index 1284e04906b..ccb8f8b9346 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -3,9 +3,10 @@ package plugin import ( + "github.com/vektah/gqlparser/v2/ast" + "github.com/99designs/gqlgen/codegen" "github.com/99designs/gqlgen/codegen/config" - "github.com/vektah/gqlparser/v2/ast" ) type Plugin interface {