diff --git a/generator/fake.go b/generator/fake.go index 834830a..d017ac1 100644 --- a/generator/fake.go +++ b/generator/fake.go @@ -59,7 +59,7 @@ func NewFake(fakeMode FakeMode, targetName string, packagePath string, fakeName } f.Imports.Add("sync", "sync") - err := f.loadPackages() + err := f.loadPackages(workingDir) if err != nil { return nil, err }