Questions tagged [buf]
21
questions
0
votes
1
answer
22
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)...
0
votes
0
answers
50
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
105
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
0
answers
47
views
buf support for vendoring external proto without registry
I was wondering if its possible to vendor proto with buf from another repository without using a buf registry.
Most of the documentation I reference depends on a buf registry existing.
Thanks!
0
votes
1
answer
100
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
153
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
140
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 ...
0
votes
1
answer
704
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 ...
0
votes
0
answers
345
views
buf generate: exclude paths with using a template yaml
I am using buf cli with version 1.5.0 to generate proto files for both Go and C#
File structure of my protobuf definitions is as follows:
service1
-> proto
--> def
----> go_only_protos
-------...
7
votes
1
answer
580
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
219
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 *....
2
votes
0
answers
816
views
Is it possible to use the remote grpc python plugin for `buf` to generate a Python Client Stub, but not generate the Servicer?
I'm working with buf to try to generate code for my grpc service. However, I don't want to create a Python service. I only want to use a Python client to talk to my service. Is there some option I can ...
2
votes
1
answer
266
views
Import cycle in tensorflow protobufs
I am trying to write client code to talk to a tensorflow server. I need the golang compiled protobufs for tensorflow and tensorflow_serving. These are not easy to come by, I managed to do so through ...
0
votes
1
answer
4k
views
buf generate - .proto not exists
When I run buf generate, get error:
proto/auth_service.proto:5:8:user.proto: does not exist
buf.gen.yaml:
version: v1
plugins:
- name: go
out: gen/go
opt:
- paths=source_relative
- ...
0
votes
1
answer
3k
views
Buf: Import protocol buffers from another project
I am using buf CLI to generate protos for Go via command buf generate.
I am able to generate protos successfully if any imports are defined in the same directory.
However, I could not import protos ...