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

thriftrw-plugin-yarpc: Support go.uber.org/mock #2236

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

r-hang
Copy link
Contributor

@r-hang r-hang commented Dec 1, 2023

github.com/golang/mock has been deprecated and archive and the readme now points to https://github.com/uber/mock as its successor.

YARPC's thriftrw plugin assumes golang/mock. Add the ability to configure the mock runtime in the thriftrw plugin generated code to allow for golang/mock (by default to not break existing code) and uber/mock by configuration.

  • Description and context for reviewers: one partner, one stranger
  • [n/a] Docs (package doc)
  • Entry in CHANGELOG.md

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

"strings"

"go.uber.org/thriftrw/plugin"
"go.uber.org/thriftrw/plugin/api"
)

// mock libraries
var (
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: constant

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

github.com/golang/mock has been deprecated and archive and the readme
now points to https://github.com/uber/mock as its successor.

YARPC's thriftrw plugin assumes golang/mock. Add the ability to
configure the mock runtime in the thriftrw plugin generated code
to allow for golang/mock (by default to not break existing code)
and uber/mock by configuration.
@r-hang r-hang force-pushed the rhang/uber-mock-patch branch from 517e4b1 to 23c8f04 Compare December 7, 2023 03:14
@biosvs biosvs mentioned this pull request Jun 20, 2024
@biosvs biosvs added this to the v1.75.4 milestone Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants