-
-
Notifications
You must be signed in to change notification settings - Fork 176
Description
Description
I'm trying to run a custom protoc plugin that modifies the output of a different (Java) plugin, using insertion points.
I first tried looking for an argument to java_proto_library or java_proto_compile that let me add my plugin. When I didn't see any I then tried making my own compile rule, specifying both plugins. This attempt was however met by errors saying that the insertion points were not found.
I looked at the source and spotted this:
# Each plugin is isolated to its own execution of protoc, as plugins may have differing
# exclusions that cannot be expressed in a single protoc execution for all plugins.
for plugin in plugins:
As far as I can tell this effectively makes it impossible to use insertion point based protoc plugins with rules-proto-grpc.
Is it possible to change this? It seems like the low level function should support multiple plugins in one call, and then leave it up to higher level functions to split plugins into multiple calls to the low level compile, if that is desired.
Ideally I'd like to see an argument to the high level functions where one could pass insertion point based plugins.