Skip to content

Commit

Permalink
Added packages.NeedDeps bit to packages.LoadMode to fix error (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
metalrex100 authored Mar 29, 2022
1 parent 5d3d962 commit 903a66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Registry struct {
// Registry.
func New(srcDir, moqPkg string) (*Registry, error) {
srcPkg, err := pkgInfoFromPath(
srcDir, packages.NeedName|packages.NeedSyntax|packages.NeedTypes|packages.NeedTypesInfo,
srcDir, packages.NeedName|packages.NeedSyntax|packages.NeedTypes|packages.NeedTypesInfo|packages.NeedDeps,
)
if err != nil {
return nil, fmt.Errorf("couldn't load source package: %s", err)
Expand Down

0 comments on commit 903a66f

Please sign in to comment.