grpcurl icon indicating copy to clipboard operation
grpcurl copied to clipboard

Use protoset & reflection in the same time

Open mark4z opened this issue 2 years ago • 2 comments

can we ?

mark4z avatar Nov 23 '22 03:11 mark4z

@mark4z, do you mean like described in issue #135 (and already implemented in #146 and first released in v1.6.0)?

jhump avatar Nov 23 '22 03:11 jhump

@jhump Yes, similar but needs to be a little smarter. That's because when some third-party proto dependencies are compiled by gogoprotoc, but you can't simply recompile it, like ‘k8s.io/api’, the current grpc reflection doesn't return the corresponding descriptors correctly because gogoprotoc doesn't register its own descriptors to grpc. so, here a possible solution is to actually merge the local descriptors with the descriptors returned by the reflection, even in find deps. Maybe I'll do that.

mark4z avatar Nov 24 '22 03:11 mark4z