Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying gomock definition and tests from rules_go #231

Merged
merged 5 commits into from
Feb 4, 2025
Merged

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