-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Using extra_protoc_args = ["--csharp_opt=internal_access"],
does not apply to generated services
#281
Comments
That arg as specified will only apply to the protobuf plugin for protoc, not the grpc plugin also. You need to specify per-plugin options for each of the protobuf and grpc C# plugins using the |
@aaliddell do you have an example of what does options could be? Where can I find the docs about the |
I don't know where the docs are for the C# grpc plugin, but assuming it takes the same option as the protobuf plugin, you should use an options arg like (not tested): options = {
"@rules_proto_grpc//csharp:csharp_plugin": ["internal_access"],
"@rules_proto_grpc//csharp:grpc_csharp_plugin": ["internal_access"],
} |
@aaliddell this works, thanks a lot! I think it would be awesome to have these small details documented. Also, on a totally different note, I put something up with the latest |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Issue Description
When using the option to make generated classes
internal
, the generated messages areinternal
, but theServiceApiBase
andServiceApiClient
are allpublic
.Generated code:
Log Output
No response
rules_proto_grpc Version
4.4.0
Bazel Version
6.3.2
OS
MacOS 13.5
Link to Demo Repo
No response
WORKSPACE Content
No response
BUILD Content
No response
Proto Content
No response
Any Other Content
No response
The text was updated successfully, but these errors were encountered: