question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support compiling multiple .proto files with a single command

See original GitHub issue

protoc 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

19reactions
ytkangcommented, Jul 5, 2019

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

1reaction
hungpv-2039commented, Sep 8, 2021

This is worked for me protoc --grpc-web_out=import_style=typescript,mode=grpcweb:$OUT_DIR \ ./protos/*.proto

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found