-
Notifications
You must be signed in to change notification settings - Fork 372
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
Fix proto filedescriptor #254
Fix proto filedescriptor #254
Conversation
Generated golang bindings invoke proto.Register with a "file name" and a metadata blob. The primary goal of this change is to support protobuf reflection libraries that attempt to examine the generated metadata blobs; abbreviated file names (prior to this change set) make reflection difficult. A secondary goal is to avoid overlap with other non-fully qualified proto packages: a longer, fully qualified package root has less chance of overlapping with that of another package in the wild.
@julian-hj @ddebroy PTAL |
} | ||
|
||
func init() { proto.RegisterFile("csi.proto", fileDescriptor_csi_31237507707d37ec) } | ||
func init() { | ||
proto.RegisterFile("github.com/container-storage-interface/spec/csi.proto", fileDescriptor_csi_88c20d68ea45d9ad) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the significant "registration" line mentioned in the commit log.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM. But let's get some go expert to take a look at this PR since I am not.
LGTM. But I'm not a go expert either. |
Not-an-expert LGTM |
This isn't so much a "go expert" thing as a "golang/protobuf" thing. |
Generated golang bindings invoke proto.Register with a "file name" and a metadata blob. The primary goal of this change is to support protobuf reflection libraries that attempt to examine the generated metadata blobs; abbreviated file names (prior to this change set) make reflection difficult. A secondary goal is to avoid overlap with other non-fully qualified proto packages: a longer, fully qualified package root has
less chance of overlapping with that of another package in the wild.