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

Add createCodeGeneratorRequest() to upstream-protobuf #643

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

timostamm
Copy link
Member

This adds the method createCodeGeneratorRequest to the internal class UpstreamProtobuf. It takes proto files as an argument (optionally also an array of files to generate, and plugin options), and returns a binary google.protobuf.CodeGeneratorRequest, by shelling out to protoc.

The method allows tests to create complete code generator requests (with correct option retention) on the fly.

@timostamm timostamm merged commit 632d712 into main Dec 5, 2023
5 checks passed
@timostamm timostamm deleted the tstamm/upstream-createCodeGeneratorRequest branch December 5, 2023 20:43
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.

3 participants