Support compiling multiple .proto files with a single command
See original GitHub issueprotoc
supports passing multiple .proto
files with a single call. Typically, the output directory is specified and the file names are based on the names of the .proto
files.
Currently, if more than one service
is defined in more than one .proto
file, protoc
returns an error:
... Tried to write the same file twice.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
How to compile multiple proto files in single command?
You must provide one or more .proto files as input. Multiple .proto files can be specified at once. Although the files are named...
Read more >execute multiple .proto files - Google Groups
hi everyone i try to execute with msbuild multiple .proto files in the same command. here's my code it is pretty simple but...
Read more >Protocol Buffer Basics: Java - Google Developers
Define message formats in a .proto file. Use the protocol buffer compiler. Use the Java protocol buffer API to write and read messages....
Read more >Protocol Buffers/gRPC Codegen Integration Into .NET Build
With Grpc.Tools package version 1.17 we made it easier to compile .proto files in your project using the dotnet build command, Visual Studio,...
Read more >Protocol Buffer Rules - Bazel
The proto-compiler is taken from the proto_library rule we attach to. It is passed as a command-line flag to Blaze. Several features require...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m looking for similar but, In my case,
serviceA/a.proto serviceB/b.proto … serviceN/n.proto
I can build these all by one command
protoc --go_out=plugins=grpc:. **/*.proto
This is worked for me
protoc --grpc-web_out=import_style=typescript,mode=grpcweb:$OUT_DIR \ ./protos/*.proto