Skip to content

Conversation

@linzhp
Copy link
Contributor

@linzhp linzhp commented Oct 16, 2025

It is possible to pass a gomock target into a go_library directly. Specifying out isn't necessary if people are not going to use it. In fact, having out attribute would make Gazelle's Go extension add the mock file into the go_library in the same BUILD.bazel file, which is not what people want.

This PR makes out optional and use the target name as the file name by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants