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 setting protoc command via Meta #3633

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

Conversation

duckbrain
Copy link
Contributor

@duckbrain duckbrain commented Jan 13, 2025

Fixes #3623

Adds a meta value protoc:cmd to override the command (and prefix args).

If the meta value is provided for both the service and the API, the API will be used an API-wide default and the Service definition will be used as a Service-level override. This seems to make more sense than appending them together like we do with includes.

I wasn't sure if it made more sense to have Meta("protoc:cmd") (no values) do nothing or restore the default protoc if used as an override in the Service definition, so I made it error. Also considered not allowing it on the service definition to avoid the situation.


Tested this with a private project as well.

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.

Allow specifying protoc command
1 participant