-
Notifications
You must be signed in to change notification settings - Fork 11
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
Allow *.orion.pb.go files to access the exported-service-desc from *.pb.go #189
Allow *.orion.pb.go files to access the exported-service-desc from *.pb.go #189
Conversation
…pb.go Add two execution parameters. standalone-mode: Allow you to place *.orion.pb.go and *.pb.go into different folder. exported-service-desc: Allow you to use the higher version (v1.20.0) of protoc-gen-go. Read go_package option from protobufs files. In standalone mode, the external import path is getting from the go_package option.
Codecov Report
@@ Coverage Diff @@
## master #189 +/- ##
=======================================
Coverage 57.97% 57.97%
=======================================
Files 13 13
Lines 564 564
=======================================
Hits 327 327
Misses 230 230
Partials 7 7 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
||
import "google.golang.org/grpc" | ||
|
||
var ExampleService_ServiceDesc grpc.ServiceDesc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cs-lexliu Can you add this variable generated from protoc-gen-go
Which version of protoc-gen-go should be used to generate it?
because current version would generate _ExampleService_ServiceDesc.
Do we have to bump the version in shared-proto scripts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me create another PR to describe how to use the tool and supported grpc version for the tool
Add two execution parameters.
standalone-mode
: Allow you to place *.orion.pb.go and *.pb.go into different folder.exported-service-desc
: Allow you to use the higher version (v1.20.0) of protoc-gen-go. Read go_package option from protobufs files.In standalone mode, the external import path is getting from the go_package option.
Check protoc-gen-orion/testprotos/Makefile for the usage.
#186