Skip to content

Commit

Permalink
chore: speedup mockgen by changing go list parameters (#181)
Browse files Browse the repository at this point in the history
This PR implements the changes described in issue #180 to speedup mock
generation
  • Loading branch information
ghouscht committed Jun 18, 2024
1 parent 893ee9c commit b59039c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mockgen/mockgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ func createPackageMap(importPaths []string) map[string]string {
}
pkgMap := make(map[string]string)
b := bytes.NewBuffer(nil)
args := []string{"list", "-json"}
args := []string{"list", "-json=ImportPath,Name"}
args = append(args, importPaths...)
cmd := exec.Command("go", args...)
cmd.Stdout = b
Expand Down

0 comments on commit b59039c

Please sign in to comment.