From 00e045dbb2b066495dea5807d3fa838151227dc1 Mon Sep 17 00:00:00 2001 From: David Garcia Quintas Date: Fri, 1 Jun 2018 15:44:03 -0700 Subject: Fix the inclusion "third_party/nanopb/..." to simply "..." --- bazel/grpc_deps.bzl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bazel') diff --git a/bazel/grpc_deps.bzl b/bazel/grpc_deps.bzl index 50d1d24303..9732e27a7e 100644 --- a/bazel/grpc_deps.bzl +++ b/bazel/grpc_deps.bzl @@ -5,7 +5,7 @@ def grpc_deps(): native.bind( name = "nanopb", - actual = "@com_github_grpc_grpc//third_party/nanopb:nanopb", + actual = "@com_github_nanopb_nanopb//:nanopb", ) native.bind( @@ -93,6 +93,14 @@ def grpc_deps(): name = "com_google_protobuf", strip_prefix = "protobuf-b5fbb742af122b565925987e65c08957739976a7", url = "https://github.com/google/protobuf/archive/b5fbb742af122b565925987e65c08957739976a7.tar.gz", + ) + + if "com_github_nanopb_nanopb" not in native.existing_rules(): + native.new_http_archive( + name = "com_github_nanopb_nanopb", + build_file = "@com_github_grpc_grpc//third_party:nanopb.BUILD", + strip_prefix = "nanopb-f8ac463766281625ad710900479130c7fcb4d63b", + url = "https://github.com/nanopb/nanopb/archive/f8ac463766281625ad710900479130c7fcb4d63b.tar.gz", ) if "com_github_google_googletest" not in native.existing_rules(): -- cgit v1.2.3