Skip to content

Comments

feat: support for github.com/golang/mock/mockgen (#180)#180

Merged
tkrop merged 1 commit intomainfrom
mockgen
Feb 5, 2026
Merged

feat: support for github.com/golang/mock/mockgen (#180)#180
tkrop merged 1 commit intomainfrom
mockgen

Conversation

@tkrop
Copy link
Owner

@tkrop tkrop commented Feb 5, 2026

This pull request re-adds the before support for github.com/golang/mock/mockgen now as alternative supported tool for the newer and still maintained go.uber.org/mock/mockgen. The algorithm checks the local go.mod file and installs the corresponding mockgen, currently not observing the installed version (which may be possible).

The downside of this dynamic tool selection is, that it creates potential race conditions between concurrent go-make executions on different repositories using different mockgens. This problem would be increased when adding the tool version itself.

Signed-off-by: Tronje Krop <tronje.krop@jactors.de>
@tkrop tkrop self-assigned this Feb 5, 2026
@tkrop tkrop added the enhancement New feature or request label Feb 5, 2026
@tkrop tkrop merged commit 00592dd into main Feb 5, 2026
13 of 14 checks passed
@tkrop tkrop deleted the mockgen branch February 5, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant