Skip to content

Commit

Permalink
chore: speedup mockgen by changing go list parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ghouscht committed Jun 10, 2024
1 parent 893ee9c commit 5c629a6
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 5c629a6

Please sign in to comment.