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

Get protobuf source from self-describing files #4

Open
chekanov opened this issue Aug 30, 2018 · 1 comment
Open

Get protobuf source from self-describing files #4

chekanov opened this issue Aug 30, 2018 · 1 comment

Comments

@chekanov
Copy link
Contributor

Hi, David

Thanks for updating this package. I've updated all recent proio HepSim files with the self-describing tag (and removed mc.proto file from these files). I've also updated hs-toolkit, so you can use GUI browser from this package to view mc.proto file. But it is in JSON format (I'm using toProto().toString()). It would be good to be able to extract the model file in the standard protocol buffers format.

best, Sergei

@decibelcooper decibelcooper changed the title self-describing feature Get protobuf source from self-describing files Aug 30, 2018
@decibelcooper
Copy link
Member

Hi Sergei (@chekanov),

What you ask for is not possible, it seems. One apparently cannot easily go from a FileDescriptor back to true source code. If this is considered a necessity, then perhaps I should come up with a way to easily
add the git url and commit hash to the metadata so that users can find the exact code and proto source used to generate the file.

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

No branches or pull requests

2 participants