@@ -46,47 +46,33 @@ http_archive(
4646 urls = ["https://github.com/google/benchmark/archive/master.zip" ],
4747)
4848
49- # Used by gRPC.
49+ # gRPC
5050http_archive (
51- name = "build_bazel_rules_apple " ,
52- strip_prefix = "rules_apple -master" ,
53- urls = ["https://github.com/bazelbuild/rules_apple /archive/master.zip " ],
51+ name = "com_github_grpc_grpc " ,
52+ strip_prefix = "grpc -master" ,
53+ urls = ["https://github.com/grpc/grpc /archive/master.tar.gz " ],
5454)
5555
56+ load ("@com_github_grpc_grpc//bazel:grpc_deps.bzl" , "grpc_deps" )
57+
58+ grpc_deps ()
59+
60+ # grpc_deps() cannot load() its deps, this WORKSPACE has to do it.
61+ # See also: https://github.com/bazelbuild/bazel/issues/1943
5662load (
5763 "@build_bazel_rules_apple//apple:repositories.bzl" ,
5864 "apple_rules_dependencies" ,
5965)
6066
6167apple_rules_dependencies ()
6268
63- # Used by gRPC.
64- http_archive (
65- name = "build_bazel_apple_support" ,
66- strip_prefix = "apple_support-master" ,
67- urls = ["https://github.com/bazelbuild/apple_support/archive/master.zip" ],
68- )
69-
7069load (
7170 "@build_bazel_apple_support//lib:repositories.bzl" ,
7271 "apple_support_dependencies" ,
7372)
7473
7574apple_support_dependencies ()
7675
77- # gRPC
78- http_archive (
79- name = "com_github_grpc_grpc" ,
80- strip_prefix = "grpc-master" ,
81- urls = ["https://github.com/grpc/grpc/archive/master.tar.gz" ],
82- )
83-
84- load ("@com_github_grpc_grpc//bazel:grpc_deps.bzl" , "grpc_deps" )
85-
86- grpc_deps ()
87-
88- # gRPC depends on upb, which depends on a @bazel_version repo
89- # which it provides but has to be instantiated explicitly.
9076load ("@upb//bazel:repository_defs.bzl" , "bazel_version_repository" )
9177
9278bazel_version_repository (name = "bazel_version" )
0 commit comments