Skip to content

Commit

Permalink
Added packages.NeedDeps bit to packages.LoadMode to fix error (vektra…
Browse files Browse the repository at this point in the history
  • Loading branch information
metalrex100 authored and LandonTClipp committed Nov 20, 2023
1 parent 2b7cb51 commit 8a396af
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 8a396af

Please sign in to comment.