Skip to content
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

Merged

Conversation

jdef
Copy link
Member

@jdef jdef commented Jul 18, 2018

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.

James DeFelice added 3 commits July 18, 2018 17:16
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.
@jdef jdef requested review from jieyu and saad-ali July 18, 2018 18:57
@jdef
Copy link
Member Author

jdef commented Jul 18, 2018

@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)
Copy link
Member Author

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.

@jdef
Copy link
Member Author

jdef commented Jul 18, 2018

@jieyu @saad-ali PTAL

Copy link
Member

@jieyu jieyu left a 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.

@saad-ali
Copy link
Member

LGTM. But I'm not a go expert either.

@ddebroy
Copy link
Contributor

ddebroy commented Jul 26, 2018

Not-an-expert LGTM

@jdef
Copy link
Member Author

jdef commented Jul 26, 2018

This isn't so much a "go expert" thing as a "golang/protobuf" thing.

@jdef jdef merged commit f7a67e7 into container-storage-interface:master Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants