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

Allow proto files to have a separate configurable idl root #905

Merged
merged 3 commits into from
Aug 3, 2023
Merged

Allow proto files to have a separate configurable idl root #905

merged 3 commits into from
Aug 3, 2023

Conversation

kaialang
Copy link

@kaialang kaialang commented Aug 3, 2023

This change allows proto files to have a separate configurable idl root in PackageHelperOptions. It adds one field of ProtoRelIdlRootDir in PackageHelperOptions. In case ProtoRelIdlRootDir is not specified, use RelIdlRootDir, if RelIDlRootDir is not set, use "./idl" as default.

Added test cases in package_test.go and client_test.go to cover the code changes. Also modified one of the examples to have protos live under "./bazel-out/idl"

It is used to create newGRPCClientSpec. This change doesn't break existing Thrift or Proto codegen, as for the existing code ProtoRelIdlRootDir is empty, it defaults to the current RelIdlRootDir.

This change will resolve issues in generating services and endpoints when deep dependencies includes both thrift and proto.

@CLAassistant
Copy link

CLAassistant commented Aug 3, 2023

CLA assistant check
All committers have signed the CLA.

@kaialang kaialang requested a review from clayne11 August 3, 2023 05:01
@kaialang kaialang merged commit 044505f into uber:zanzibar-v1.1.1-hotfix Aug 3, 2023
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