summaryrefslogtreecommitdiff
path: root/WORKSPACE
diff options
context:
space:
mode:
authorShengzhe <yaoshengzhe@gmail.com>2020-06-26 15:39:23 -0700
committerGitHub <noreply@github.com>2020-06-26 15:39:23 -0700
commit4995e1527335fbeed80cecc9b15c4acf54309aa8 (patch)
tree67f07d675bf2f42dd045d5d50c4c80ffce69661e /WORKSPACE
parent60b6066febe67eb58d9444c8137b0e820729a088 (diff)
downloadflatbuffers-4995e1527335fbeed80cecc9b15c4acf54309aa8.tar.gz
flatbuffers-4995e1527335fbeed80cecc9b15c4acf54309aa8.tar.bz2
flatbuffers-4995e1527335fbeed80cecc9b15c4acf54309aa8.zip
Manage grpc dependency in Bazel's WORKSPACE file. (#5995)
flatbuffers project currently depends on an old version of GRPC library and has known issues working with the latest version (issue #5836). Therefore, a patch file is created and put under bazel/ directory before supporting the latest GRPC version.
Diffstat (limited to 'WORKSPACE')
-rw-r--r--WORKSPACE16
1 files changed, 16 insertions, 0 deletions
diff --git a/WORKSPACE b/WORKSPACE
index 0ab09dbd..7aea457c 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -16,3 +16,19 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_to
go_rules_dependencies()
go_register_toolchains()
+
+
+##### GRPC
+_GRPC_VERSION = "1.15.1"
+
+http_archive(
+ name = "com_github_grpc_grpc",
+ patches = ["//bazel:grpc_deps_1_15_1.patch"],
+ patch_args = ["-p1"],
+ strip_prefix = "grpc-" + _GRPC_VERSION,
+ urls = ["https://github.com/grpc/grpc/archive/v" + _GRPC_VERSION + ".tar.gz"],
+)
+
+load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
+
+grpc_deps()