generated from bazel-contrib/rules-template
    
        
        - 
                Notifications
    You must be signed in to change notification settings 
- Fork 16
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What is the current behavior?
Hi,
I am using this toolchain to compile protos without having to compile protoc from scratch, which makes a ton of sense.
Now I am trying to also add gRPC generation to my proto files. I tried using python macros from rules_proto_grpc or from the main grpc repo itself, but in both cases, it seems like they are trying to rebuild protoc or grpc, and my builds fail because I have set the following in my .bazelrc:
common --per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT
common --host_per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT
common --per_file_copt=external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT
common --host_per_file_copt=external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT
common --incompatible_enable_proto_toolchain_resolution
Describe the feature
Is there a way to also call grpc in the same way?
If not, how are you supposed to get around the GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT flag? Using which macros / toolchains?
An example / pointer would be much appreciated! Thank you :)
ramilmsh
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request