Skip to content

Commit

Permalink
Merge pull request #125 from maxbrunsfeld/jf-moooooar-speed
Browse files Browse the repository at this point in the history
speed up any invocation of counterfeiter
  • Loading branch information
joefitzgerald committed Jun 3, 2019
2 parents 712c2c1 + 63b6dbd commit 982f155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 982f155

Please sign in to comment.