Skip to content

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