From 63b6dbdfd83d5aa00e7c9b709b63255e418f637b Mon Sep 17 00:00:00 2001 From: Joe Fitzgerald Date: Mon, 3 Jun 2019 16:25:40 -0600 Subject: [PATCH] be specific when defining packages.Config.Mode --- generator/loader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/loader.go b/generator/loader.go index 858d220..6d17dd3 100644 --- a/generator/loader.go +++ b/generator/loader.go @@ -20,7 +20,7 @@ func (f *Fake) loadPackages(c Cacher, workingDir string) error { return nil } p, err := packages.Load(&packages.Config{ - Mode: packages.LoadSyntax, + Mode: packages.NeedName | packages.NeedFiles | packages.NeedImports | packages.NeedDeps | packages.NeedTypes, Dir: workingDir, Tests: true, }, f.TargetPackage)