25 questions
0
votes
0
answers
131
views
Buf can't find google/api/annotations.proto in vendored directory for Cosmos SDK v0.53 module
I'm developing a new module for a Cosmos SDK v0.53 application and I'm completely stuck on a persistent buf error. I have resorted to vendoring all my Protobuf dependencies into a third_party ...
1
vote
1
answer
658
views
Configuring Protobuf support for NeoVim
I am trying to configure Protobuf LSP support with nvim (I am using Lazyvim package manager). I've read here that bufls is deprecated and that we should be using buf_ls. Using this snippet, I've ...
1
vote
1
answer
242
views
Can't buf generate generate folders with dots?
We use protobuf and the buf CLI to create and generate the shared files between a Go and a Python project (for ensuring structured data to be transmitted between the projects in a common way).
We want ...
0
votes
0
answers
15
views
cannot exclude package name and service name from RPC in Buf connect-web
I use Rust tonic and tonic-web in backend and use Buf in frontend.
test.proto
syntax = "proto3";
package test;
service TestService {
rpc CheckHealth (Empty) returns (CheckHealthResponse);
...
0
votes
0
answers
264
views
Buf.build modules with conflicting dependencies
I'm trying to generate API client code for two different API services say A & B. the problem is, these two services have conflicting dependencies - protoc-gen-swagger & protoc-gen-openapiv2 (...
0
votes
1
answer
133
views
Buf with protoc_builtin PHP has different behaviour than the actual protoc plugin?
I'm migrating a PHP project using protoc to the Buf CLI. To ensure backwards compatibility, I'm trying to have Buf produce more or less exactly the same output as the builtin PHP plugin would do.
I've ...
0
votes
1
answer
122
views
unknown reference swagger issue when issuing buf generate with stream rpc
I am trying to generate swagger.json using buf generate.
Here is my sample proto file
import "google/rpc/status.proto";
rpc Create(stream CreateRequest) returns (stream
CreateResponse)...
5
votes
1
answer
810
views
Become relative import when `buf generate` with `google.type.Date` in TypeScript
When I ran buf generate on a file that included google/type/date.proto, a pb file containing a relative path was generated. However, there is no file with the specified path. The language is ...
0
votes
1
answer
643
views
Python 3.8 compatibility problem with Protos 5.27.0
I'm running a Python 3.8 app that is using some proto generated from a private repo. This integration was working until the generated code used the 5.27.0 version.
The error I'm getting is something ...
0
votes
1
answer
241
views
Wrong generated java class name with Buf
According to buf doc, by default option java_outer_classname converts the weather.proto filename, for example, to WeatherProto.
In my case, it converted it to WeatherOuterClass.
I'm not setting the ...
0
votes
1
answer
424
views
How to change naming convention of Go imports generated by Buf?
I am trying to set up Buf to generate Go stubs from my proto schemas but I'm having issues with the generated code compared to the tool that is already in place (Prototool).
Prototool generates me a ...
1
vote
0
answers
265
views
Cors problem with go buf connect gRPC server configuration
I am trying to configure a go buf connect server in go. That serves gRPC endpoints to a Vue3 Typescript frontend. The browser complains about cors on the preflight request send.
The vite dev server ...
1
vote
1
answer
1k
views
use grpc reflection service to build static model
I am building a client to a specific grpc application, that exposes also the reflection service (so, for example, I can use grpc_cli to check the exposed call/types).
ATM I don't have direct access to ...
7
votes
1
answer
1k
views
What is the purpose of the go_package_prefix in the buf build library?
I I don't understand the purpose of the go_package_prefix code snippet in generating protobuf files
version: v1
managed:
enabled: true
go_package_prefix:
default: github.com/imsobad/grpc-...
0
votes
0
answers
440
views
File structure for generated code in Rust
I'm generating protobuf code for my Rust project using the neoeinstein-prost buf plugin which, so far, is working well for my use case. My question is where is the idiomatic place for the generated *....