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

Migrate github.com/golang/mock to github.com/uber-go/mock #3710

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

manjari25
Copy link

What type of PR is this?
Other

What does this PR do? Why is it needed?
rules_go provides a bazel rule; gomock.bzl to use github.com/golang/mock, a mocking framework in Golang.

Starting June 2023, github.com/golang/mock is no longer maintained. The repo forked from this at github.com/uber-go/mock is actively maintained.

This PR migrates rules_go to use the forked repo for gomock bazel rule instead of the unmaintained repo.

Which issues(s) does this PR fix?

Fixes #3709

@google-cla
Copy link

google-cla bot commented Sep 25, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@manjari25 manjari25 marked this pull request as ready for review September 25, 2023 23:29
@@ -1,6 +1,6 @@
"""
[gazelle rule]: https://github.com/bazelbuild/bazel-gazelle#bazel-rule
[golang/mock]: https://github.com/golang/mock
[uber-go/mock]: https://github.com/uber-go/mock
Copy link
Contributor

Choose a reason for hiding this comment

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

The package name is go.uber.org/mock. Maybe we should refer to that instead?

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.

gomock.bzl: Use github.com/uber-go/mock instead of unmaintained github.com/golang/mock
2 participants