Makes it friendly to import grpc from other bazel projects.#13468
Makes it friendly to import grpc from other bazel projects.#13468renning22 wants to merge 5 commits intogrpc:masterfrom
Conversation
|
Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement. After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.
Regards, |
|
|
I am going to merge #13060 first - you'll most likely want to revisit your PR after that. |
|
|
Ack, thanks @nicolasnoble . |
5d25206 to
3d87a62
Compare
|
|
Also, I'm sorry, but I won't be able to accept your PR if you don't accept the linux foundation CLA. Please visit https://identity.linuxfoundation.org/projects/cncf for this. |
53b9fd6 to
c5f8213
Compare
|
Thanks @nicolasnoble , |
|
You'll want to update this file so the test pass again: |
|
|
|
|
You might consider adopting the pattern used by https://github.com/bazelbuild/rules_go to allow users to optionally overwrite one or more of the dependencies supplied by your Skylark rules. For example, The conditional works such that it will only install the version of Buildtools, supplied below if the user is not explicitly binding a rule of the same name somewhere else. See https://github.com/bazelbuild/rules_go/blob/master/go/private/repositories.bzl for more examples. A little more discussion can be found at https://groups.google.com/forum/#!topic/bazel-discuss/EBeFucaAg3A. |
…sued by other projects, and simplifies cares build.
…s dependency check. Otherwise include "third_party/nanopb/pb.h" will find local ph.h rather than the one in "//external:nanopb".
…th those in "bazel/grpc_deps.bzl".
|
I've fixed "check_bazel_workspace.py" test. It still not passing on my machine because "git submodule" for protobuf is still 80a37e0782d2d702d52234b62dd4b9ec74fd2c95, while the expectation has been updated in 28661ea. I guess it should also fail "check_submodules.sh". @jwpowell055 also adopted your suggestion, thanks! |
Carry on from #13468, simplify bazel consumption of grpc
Backport bazel changes from #13468 to 1.8.x
Example of how to import grpc in other project's WORKSPACE file:
Then
bazel build @com_github_grpc_grpc//:grpcwould work.