-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bazel expose protoc-gen-grpc-gateway #668
Bazel expose protoc-gen-grpc-gateway #668
Conversation
Closing, recommendation is to remove all BUILD files for vendor/ dependencies. |
Reopening, we are defining |
Can you rebase this and get CI passing? Out of curiosity, what are you doing that requires a different go_proto_compiler? |
0085861
to
ed56eaf
Compare
So some of our deps for https://github.com/grpc-ecosystem/grpc-gateway/blob/master/protoc-gen-grpc-gateway/BUILD.bazel#L31 are registered in bazel under |
@achew22 any idea why this is breaking? |
Looks like protoc-go changed their output again. Can you run |
I'm unable to get the correct versions without playing with it more, seems to edit all the examples/*.go files. |
I would expect that. Since the upstream protoc changed, probably all the |
ed56eaf
to
baa8b89
Compare
Codecov Report
@@ Coverage Diff @@
## master #668 +/- ##
=======================================
Coverage 56.47% 56.47%
=======================================
Files 30 30
Lines 3005 3005
=======================================
Hits 1697 1697
Misses 1145 1145
Partials 163 163 Continue to review full report at Codecov.
|
Out of curiosity, what would you think about adding a new |
@achew22 our go_proto_compiler rule looks like:
I think there will be nicer ways to do this in the future with the rules_go. Maybe something in bazel-contrib/rules_go#1548 will fix it. |
Oh, so is the major factor that you're vendoring in groc-gateway? If you weren't vendoring would the existing target work for you? |
Yes and other grpc libraries that can cause version conflicts. |
Exposes go_binary() rule for protoc-gen-grpc-gateway so dependencies can be vendored for the go_proto_compiler() rule when using //vendor dependencies.