-
Notifications
You must be signed in to change notification settings - Fork 497
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
proto file "does not reside in any import path" #108
Comments
This was certainly introduced by this change. It was changed in the hopes of behaving more like |
thanks for the fast response. I see the fix/change is in protoreflect but no changes apparently in grpcurl; is there a new version planned for grpc or how can I get the latest to test this? |
Sorry - I didn't mean to close this issue. Github did that automatically due to my comment in the protoreflect PR. I still need to build a release of protoreflect and then update grpcurl to use that new release. (I'll then also need a new release of grpcurl.) If you want to try it out before I get everything release, you'd have to do so w/out Go modules, so that you can just |
I tried |
@iamatulsingh, a fix was released three years ago. If you are seeing this error message, it is likely due to misuse of the |
I'll open new issue regarding this. Thank you @jhump |
I've been happily using grpcurl with something like the following:
grpcurl -plaintext -import-path ../../filter/api/services -proto myservice.proto localhost:50055 myservice.MyService/MyRPC
and it's been working fine for me.
Today a colleague reported issues running this same line.
After comparing versions of grpcurl, turnw out I was using:
grpcurl dev build <no version set>
and he was using:
grpcurl 1.3.0
So I brew install grpcurl to get on the same official version and now grpcurl complains:
Failed to process proto source files.: my_current_absolute_path/myservice.proto does not reside in any import path
This is failing:
grpcurl -plaintext -import-path ../../filter/api/services -proto myservice.proto localhost:50055 myservice.MyService/MyRPC
but this is working:
grpcurl -plaintext -proto ../../filter/api/services/myservice.proto localhost:50055 myservice.MyService/MyRPC
is there anything I'm doing wrong?
has anything changed around this area that would explain why previous version worked fine but current does not?
The text was updated successfully, but these errors were encountered: