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

Make generate_protos.sh Windows-friendly. #391

Conversation

jtattermusch
Copy link
Contributor

This is re-created version of Jon Skeet's #386, this time against master (as csharp branch is getting removed).

To my surprise, executing generate_protos.sh used the version of Bash installed with Git for Windows by default.
After a few modifications to detect the most appropriate protoc to use, this worked pretty simply.
This change also:

  • adds generation of the address book tutorial proto,
  • fixes the addressbook.proto to specify proto2 explicitly (to avoid a warning from protoc; I don't think we want warnings...)
  • fixes the addressbook.proto C# namespace (which I thought I'd done before, but apparently hadn't)
  • includes the regenerated UnittestCustomOptions.cs apart from the DescriptorProtoFIle => Descriptor change

To my surprise, executing generate_protos.sh used the version of Bash installed with Git for Windows by default.
After a few modifications to detect the most appropriate protoc to use, this worked pretty simply.
This change also:
- adds generation of the address book tutorial proto,
- fixes the addressbook.proto to specify proto2 explicitly (to avoid a warning from protoc; I don't think we want warnings...)
- fixes the addressbook.proto C# namespace (which I thought I'd done before, but apparently hadn't)
- includes the regenerated UnittestCustomOptions.cs apart from the DescriptorProtoFIle => Descriptor change
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@jtattermusch
Copy link
Contributor Author

I signed it!

(trying to fix googlebot by saying that)

@jtattermusch
Copy link
Contributor Author

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

anandolee added a commit that referenced this pull request May 15, 2015
…endly

Make generate_protos.sh Windows-friendly.
@anandolee anandolee merged commit 09e584b into protocolbuffers:master May 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants