-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
protoc failing when attempting to generate bindings for gRPC storage plugin #2686
Comments
You should try using https://github.com/jaegertracing/docker-protobuf/ instead of plain |
I don't know what I'm doing wrong but it is not working for me. I run this for a simple test:
My docker downloads the image but it does not print out anything. If I run this which I based on the Makefile, the command is not interpreted correctly:
Errors with:
The fact that it breaks up the |
did you initialize git submodule? Looks like your idl dir is empty. |
No, that is not mentioned anywhere in the documentation: |
Please help us improve it, including adding example of generating proto if you make it work |
when you clone Jaeger repo, run |
The general instructions do mention it: https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING.md#pre-requisites |
OK I got some code to generate!
I will create pull request to update the documentation with this info. |
I wonder if we could customize the Makefile, which already generates all this code for Go, to also do other languages. Really, the only difference in your example should be this |
I'm OK with that approach but we should also document that capability on the README here: Also, sorry I'm a noob at this. I can't seem to create a branch to make a PR. I'm guessing that's restricted maybe... |
you cannot push a branch to this repo, you need to fork it and push a branch to your fork, then you can create a PR from it. E.g. I have this setup:
|
OK, I think I did it right :) |
I am attempting to create a C#-based gRPC Storage Plugin and I am getting stuck on the very first step of generating the bindings using
protoc
.The documentation says:
I'm running WSL 1 with Ubuntu and first I cloned the jaegertracing repo:
Then I tried to run protoc on
plugin/storage/grpc/proto/storage.proto
as follows:This resulted in the following errors:
So I then studied the Makefile a bit and attempted to run
make proto
but that failed because I don't have docker on my WSL 1. Then I tried editing the Makefile to callprotoc
locally instead of using docker... Still no success. Then I realized there is a separate jaeger-idl repository and maybe I am supposed to be referencing the model.proto from there: https://github.com/jaegertracing/jaeger-idl/blob/master/proto/api_v2/model.protoBut this all seems very round-about and unnecessarily difficult when I simply want to generate bindings for the plugin. I shouldn't have to actual compile Jaeger locally for this, right?
Do I need GoGo Protobuf? The documentation doesn't say so.
How does one actually generate the gRPC bindings for the gRPC Storage Plugin?
Also as an aside, when posting this question it says "Please consider asking question via Community Forum first". Is there an official "Community Forum"? I couldn't find one. I searched StackOverflow and found nothing as well.
The text was updated successfully, but these errors were encountered: