-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
v2 protobuf Registry #10978
Comments
I have noticed that what happens in the sdk, and applications build with the sdk, is that protobuf files are not imported as they register themselves. For example, gogoproto is imported everywhere in the sdk proto files as This causes a bug in reflection services in which files cannot be correctly resolved, and this yields to invalid field descriptors. NOTE: this might be irrelevant for protov2, pending investigation. |
We need to modify the grpc reflection service to return pinned protofiles instead of the files from the global registry. |
As we migrate to pulsar and the api module, we want to have a better way of registering protobuf information with the codec than what currently happens with the
InterfaceRegistry
.The main design principle is to have everything the registry needs to know about declaratively specified in the .proto files themselves so that the registry only requires that a module register file descriptors.
The proposed design is here:
cosmos-sdk/codec/types/interface_registry.go
Lines 377 to 390 in 21fcd17
Things we want to take care with the registry include:
We may want to consider a middleware design pattern for the registry where different extensions can perform a validation step for .proto options they use.
The text was updated successfully, but these errors were encountered: