This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
speed up mock generation in mockgen's reflect mode (#6)
This dramatically speeds up mock generation by letting mockgen use bazel's cache and build graph. We use mockgen's `-prog_only` and `-exec_only` modes to split up mockgen's generation of the interface printing program and mockgen's use of that program to generate the actual mock code. By doing that, mockgen no longer runs the `go` binary to build the interface printing code which transitively builds the entire GOPATH we created. Fixes #2
- Loading branch information
Showing
1 changed file
with
198 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters