Skip to content

Commit fdb0a17

Browse files
committed
clean up repositories.bzl
1 parent c24dd56 commit fdb0a17

2 files changed

Lines changed: 8 additions & 36 deletions

File tree

packages/gapic-generator/WORKSPACE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ http_archive(
1313
urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v{0}/protobuf-{0}.zip".format(_protobuf_version)],
1414
)
1515

16+
# Load com_google_googleapis first so we can choose which version will be used
17+
_googleapis_sha256 = "2638026851b9110c280d75338581a752a4271340"
18+
http_archive(
19+
name = "com_google_googleapis",
20+
strip_prefix = "googleapis-{}".format(_googleapis_sha256),
21+
urls = ["https://github.com/googleapis/googleapis/archive/{0}.zip".format(_googleapis_sha256)],
22+
)
23+
1624
# Load rules_gapic v1.0.0. We patch rules_gapic's .bzl files to inject the
1725
# explicit load for Starlark ProtoInfo from @rules_proto to maintain symbol
1826
# resolution under rules_proto / Protobuf 35.1.

packages/gapic-generator/repositories.bzl

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,6 @@ filegroup(
99

1010
def gapic_generator_python():
1111

12-
_maybe(
13-
http_archive,
14-
name = "bazel_skylib",
15-
strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b",
16-
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"],
17-
)
18-
19-
# Load gRPC v1.83.0 with temporary patch for legacy_channel.cc.
20-
# The fix is merged upstream (https://github.com/grpc/grpc/commit/816506e5c0434a42414af6955cc9eef0c562ff3a)
21-
# and this patch is temporary until released in a future gRPC release.
22-
_grpc_version = "1.83.0"
23-
_grpc_sha256 = "876ff5c9c26f364cd603531761268a5b58ccc1479afc78d6dab1d8e839da00c0"
24-
_maybe(
25-
http_archive,
26-
name = "com_github_grpc_grpc",
27-
sha256 = _grpc_sha256,
28-
strip_prefix = "grpc-{}".format(_grpc_version),
29-
url = "https://github.com/grpc/grpc/archive/v{}.zip".format(_grpc_version),
30-
patches = [Label("//third_party:grpc_legacy_channel.patch")],
31-
patch_args = ["-p1"],
32-
)
33-
3412
_maybe(
3513
http_archive,
3614
name = "pandoc_linux_arm_64",
@@ -71,20 +49,6 @@ def gapic_generator_python():
7149
url = "https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-windows-x86_64.zip",
7250
)
7351

74-
_rules_gapic_version = "0.5.4"
75-
_maybe(
76-
http_archive,
77-
name = "rules_gapic",
78-
strip_prefix = "rules_gapic-%s" % _rules_gapic_version,
79-
urls = ["https://github.com/googleapis/rules_gapic/archive/v%s.tar.gz" % _rules_gapic_version],
80-
)
81-
_commit_sha = "2638026851b9110c280d75338581a752a4271340"
82-
_maybe(
83-
http_archive,
84-
name = "com_google_googleapis",
85-
strip_prefix = "googleapis-{}".format(_commit_sha),
86-
urls = ["https://github.com/googleapis/googleapis/archive/{}.zip".format(_commit_sha)],
87-
)
8852

8953
def gapic_generator_register_toolchains():
9054
native.register_toolchains(

0 commit comments

Comments
 (0)