You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub repository with your minimal reproducible example (do not leave this field blank or fill out this field with "github.com/bufbuild/buf" or we will automatically close your issue, see the instructions above!)
Failure: Module "path: "backend_repo/protobuf", excludes: "backend_repo/protobuf/c"" had no .proto files
Expected Output
I expected no errors
Anything else?
In my project I have two sources of .proto files. One is inside app/src/main/proto (app related proto files) and the other one is backend_repo/protobuf (backend related proto files).
The app files are used for a local cache (see here) and are checked in with the rest of the app source code while the backend files are used for the communication via ConnectRPC. In my example I did not specify and rpc related messages to keep it simple and used local plugin instead of remote one as I run into rate limits while testing. Our backend files are located in a separate git repository which is shared across all devices.
The setup and workflow fit our needs quite nice but I just cannot get buf breaking to work. It always fails with some form of Module XYZ had no .proto files. Is there anything I am doing wrong or are git submodules not yet supported? While setting up this example I noticed that it seems to work perfectly fine without the submodule for the backend proto files.
The text was updated successfully, but these errors were encountered:
You will need to commit this change, and then update the generate.sh script. Because you are using submodules you'll need to set the recurse_submodule option, see the configuration docs.
GitHub repository with your minimal reproducible example (do not leave this field blank or fill out this field with "github.com/bufbuild/buf" or we will automatically close your issue, see the instructions above!)
https://github.com/ln-12/buf_breaking_test (app files)
https://github.com/ln-12/buf_breaking_test2 (backend files)
Commands
Output
Expected Output
I expected no errors
Anything else?
In my project I have two sources of
.proto
files. One is insideapp/src/main/proto
(app related proto files) and the other one isbackend_repo/protobuf
(backend related proto files).The app files are used for a local cache (see here) and are checked in with the rest of the app source code while the backend files are used for the communication via ConnectRPC. In my example I did not specify and rpc related messages to keep it simple and used local plugin instead of remote one as I run into rate limits while testing. Our backend files are located in a separate git repository which is shared across all devices.
The setup and workflow fit our needs quite nice but I just cannot get
buf breaking
to work. It always fails with some form ofModule XYZ had no .proto files
. Is there anything I am doing wrong or are git submodules not yet supported? While setting up this example I noticed that it seems to work perfectly fine without the submodule for the backend proto files.The text was updated successfully, but these errors were encountered: