Skip to content

Conversation

@linzhp
Copy link
Contributor

@linzhp linzhp commented Jan 5, 2025

This PR copies the gomock definition and tests from rules_go with minimal changes:

  • Replacing github.com/golang/mock with go.uber.org/mock
  • Replacing load statements accordingly
  • Setting up a Bazel and a Go module in the "bazel" directory

Note that the Go module uses v0.4.0 of go.uber.org/mock, because the latest version is no longer compatible with the gomock rule (bazel-contrib/rules_go#4153). We will update the rule and mockgen version in subsequent PRs.

This is a first step in addressing #225

@linzhp linzhp requested a review from sywhang January 5, 2025 17:46
Copy link
Contributor

@r-hang r-hang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@linzhp linzhp merged commit bb4128e into uber-go:main Feb 4, 2025
5 checks passed
@linzhp linzhp deleted the bazel branch February 4, 2025 20:54
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