-
Notifications
You must be signed in to change notification settings - Fork 60
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
protoc-gen-twirp_ruby: obey ruby_package
#35
Conversation
OK, I lied, fixing this wasn't easy enough! In order to properly support With access to the I'd love to discuss what's the ideal way to map this dependency on the |
@spenczar is there anything blocking this from being merged? |
Thanks for the ping -- I'm taking a look now. @spenczar I'm wondering if it makes sense to share the |
@cyrusaf, https://github.com/twitchtv/protogen pulls those Moving to it seems nice, but it makes versioning much more complicated. I think using the copy you have here is probably preferable, even if it diverges, since the divergences will be pretty specific to this project. Maybe we can discuss that more in a different issue, if you think it's worth thinking more about. |
@cyrusaf: Sorry for the delay! I've fixed the test suite. It was a bit more involved than I expected because I had to add fixtures. |
Thanks for making this change -- it looks great. This PR made me realize that we should have end to end tests for generating the client/server and driving the existing unit tests through them. I've created #37 to track this. |
The ProtocolBuffer
FileDescriptorProto
was updated with support for custom Ruby packages last year. This means that if you have a.proto
file with aruby_package = "foo
option set and run it throughprotoc-gen-twirp_ruby
, the resultingpackage_pb.rb
will contain a different module name thanpackage_twirp.rb
.Fixing this is easy enough though!