-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate implicit dependencies #2743
Comments
Hi @gigi - check out the Buf Schema Registry tutorial! This will walk you through adding a dependency on googleapis and using |
Hey @smallsamantha, We've already added the googleapis dependencies and they work for dependencies that are explicitly imported into the .proto files. Is there a way to include dependencies mentioned above that are part of the infrastructure layer and not part of the business protocol? |
The answer for how to do that depends on the language you're using in your implementation. For example, if you're using go, we recommend using google.golang.org/genproto/googleapis/rpc/errdetails as described in our Connect error details documentation here. If you're using another language you may need to explicitly generate the types from googleapis similar to how you're generating your own definitions. So you might run Let me know if that gets you going in the right direction! |
We use NestJS. It seems there is no proper error details support under the hood. Such tools like grpcui or Kreya.app don't support
This approach resolves a lot of not used protos. We should remove all except two files) We ended up with empty file with necessary imports and excluded this file from
It works for now... Maybe we will find better solution soon |
Hello!
We are trying to implement Richer Error Model for gRPC.
We want to include such dependencies like
google.rpc.Status
and all messages from error_details.proto to our distributed package during the build stage.I see that https://buf.build/googleapis/googleapis/docs/main:google.rpc has all necessary dependencies.
How can we include all needed dependencies to our descriptors and generated models with
buf build
andbuf generate
?Thank you!
The text was updated successfully, but these errors were encountered: