diff --git a/main.go b/main.go index 2b8baebc32c..04c2bf54008 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,13 @@ package main -import "github.com/99designs/gqlgen/cmd" +import ( + "fmt" + "os" + + "github.com/99designs/gqlgen/cmd" +) func main() { + fmt.Fprintf(os.Stderr, "warning: running gqlgen from this binary is deprecated and may be removed in a future release. See https://github.com/99designs/gqlgen/issues/415\n") cmd.Execute() }