-
Notifications
You must be signed in to change notification settings - Fork 1.6k
chore(librarian): add support for proto-only library #14551
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
Conversation
a00c433 to
7088dbf
Compare
9cb3dac to
e3be634
Compare
e3be634 to
98fc35a
Compare
| command_parts = [ | ||
| f"protoc {api_path}/*.proto", | ||
| f"--python_out={tmp_dir}", | ||
| f"--pyi_out={tmp_dir}", | ||
| ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we considered using grpc_tools.protoc instead of running the cli as a subprocess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, my initial thought is that it's better to use protoc directly because we know which version of protoc we're getting. When we use grpc_tools.protoc, we're relying on grpc_tools to choose the version of protoc which adds unnecessary complexity.
This PR depends on #14551. Please review #14551 first Towards googleapis/librarian#1061
This PR depends on #14551 and #14587. Please review those PRs first. Towards googleapis/librarian#1076
Towards googleapis/librarian#1269