From 3a7a506259cce1a7da4ea9ebe74e1358d3c7bed0 Mon Sep 17 00:00:00 2001 From: Mathew Byrne Date: Tue, 6 Nov 2018 00:54:29 -0800 Subject: [PATCH] Add handler import to root cmd --- cmd/root.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index a6803572127..519c2e1af51 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -9,6 +9,9 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/99designs/gqlgen/internal/gopath" "github.com/urfave/cli" + + // Required since otherwise dep will prune away these unused packages before codegen has a chance to run + _ "github.com/99designs/gqlgen/handler" ) func Execute() {