mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-24 04:31:47 +00:00
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.
This commit is contained in:
16
WORKSPACE
16
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()
|
||||
|
||||
Reference in New Issue
Block a user