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

python script to generate proto3 definitions #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aavaas
Copy link

@aavaas aavaas commented Mar 4, 2018

Related to #44 ; C# protoc only takes proto3 definition files and manually converting on each update is a big hassle. With the converter script, proto2 definition files can be kept as it is as upgrading to proto3 is not planned.

The python script creates a new folder "s2clientprotocol_proto3" and writes all the converted .proto files there. I have also added ignore rule for the "s2clientprotocol_proto3" folder in .gitignore file.

The script is not generic and only for current definition files. It does,

  1. header change
  2. remove optionals
  3. add dummy enum element 0, similar to Update to proto3 syntax #44

@NikEyX
Copy link

NikEyX commented Jun 2, 2018

This is very helpful, thanks!

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.

2 participants