Skip to content

Commit

Permalink
Internal.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 631517559
  • Loading branch information
michaelreneer authored and tensorflow-copybara committed May 8, 2024
1 parent 9349ded commit c6f2c3e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 18 deletions.
51 changes: 33 additions & 18 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ git_repository(
tag = "1.3.0",
)

git_repository(
name = "com_github_grpc_grpc",
remote = "/~https://github.com/grpc/grpc.git",
tag = "v1.50.1",
)

#http_archive(
# name = "com_github_grpc_grpc",
# sha256 = "76900ab068da86378395a8e125b5cc43dfae671e09ff6462ddfef18676e2165a",
# strip_prefix = "grpc-1.50.0",
# urls = ["/~https://github.com/grpc/grpc/archive/refs/tags/v1.50.0.tar.gz"],
#)

git_repository(
name = "com_google_benchmark",
remote = "/~https://github.com/google/benchmark.git",
Expand Down Expand Up @@ -127,14 +140,33 @@ git_repository(
# Inlined transitive dependencies, grouped by direct dependency.
#

# Required by pybind11_abseil and pybind11_protobuf
# Required by pybind11_abseil and pybind11_protobuf.
new_git_repository(
name = "pybind11",
build_file = "@pybind11_bazel//:pybind11.BUILD",
remote = "/~https://github.com/pybind/pybind11.git",
tag = "v2.9.2",
)

# Required by com_github_grpc_grpc. This commit is determined by the version of
# com_github_grpc_grpc specified,
# /~https://github.com/grpc/grpc/blob/v1.59.0/bazel/grpc_deps.bzl.
git_repository(
name = "upb",
remote = "/~https://github.com/protocolbuffers/upb.git",
commit = "e4635f223e7d36dfbea3b722a4ca4807a7e882e2",
#commit = "42cd08932e364a4cde35033b73f15c30250d7c2e",
)
#http_archive(
# name = "upb",
# sha256 = "017a7e8e4e842d01dba5dc8aa316323eee080cd1b75986a7d1f94d87220e6502",
# strip_prefix = "upb-e4635f223e7d36dfbea3b722a4ca4807a7e882e2",
# urls = [
# "https://storage.googleapis.com/grpc-bazel-mirror/github.com/protocolbuffers/upb/archive/e4635f223e7d36dfbea3b722a4ca4807a7e882e2.tar.gz",
# "/~https://github.com/protocolbuffers/upb/archive/e4635f223e7d36dfbea3b722a4ca4807a7e882e2.tar.gz",
# ],
#)

#
# Transitive dependencies, grouped by direct dependency.
#
Expand All @@ -158,20 +190,3 @@ tf_workspace0()
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()

git_repository(
name = "com_github_grpc_grpc",
remote = "/~https://github.com/grpc/grpc.git",
tag = "v1.59.1",
)

load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")

grpc_deps()

# TODO: b/260598663 - Temporarily disable the direct dependency on
# `grpc_extra_deps`, for now we pick this dependency up from the TensorFlow
# workspace.
# load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
#
# grpc_extra_deps()
1 change: 1 addition & 0 deletions tensorflow_federated/cc/core/impl/executors/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ cc_library(
"//tensorflow_federated/proto/v0:executor_cc_grpc_proto",
"//tensorflow_federated/proto/v0:executor_cc_proto",
"@com_github_grpc_grpc//:grpc++",
"@com_github_grpc_grpc//:grpc_security_base",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest",
],
Expand Down

0 comments on commit c6f2c3e

Please sign in to comment.