Skip to content

Commit

Permalink
Explicitly import ambient imports so dep doesn't prune them
Browse files Browse the repository at this point in the history
  • Loading branch information
lwc committed Aug 21, 2018
1 parent e6af26e commit cac3c72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions codegen/import_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ import (
"sort"
"strconv"
"strings"

// Import and ignore the ambient imports listed below so dependency managers
// don't prune unused code for us. Both lists should be kept in sync.
_ "github.com/99designs/gqlgen/graphql"
_ "github.com/99designs/gqlgen/graphql/introspection"
_ "github.com/vektah/gqlparser"
_ "github.com/vektah/gqlparser/ast"
)

// These imports are referenced by the generated code, and are assumed to have the
Expand Down

0 comments on commit cac3c72

Please sign in to comment.