Skip to content

Commit 954a324

Browse files
authored
fix: use protobuf 3.21.12 in bazel build rules (#1584)
1 parent 4ea91a8 commit 954a324

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

packages/gapic-generator/BUILD.bazel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ toolchain_type(
99

1010
pandoc_toolchain(
1111
exec_compatible_with = [
12-
"@bazel_tools//platforms:linux",
13-
"@bazel_tools//platforms:x86_64",
12+
"@platforms//os:linux",
13+
"@platforms//cpu:x86_64",
1414
],
1515
platform = "linux",
1616
)
1717

1818
pandoc_toolchain(
1919
exec_compatible_with = [
20-
"@bazel_tools//platforms:osx",
21-
"@bazel_tools//platforms:x86_64",
20+
"@platforms//os:osx",
21+
"@platforms//cpu:x86_64",
2222
],
2323
platform = "macOS",
2424
)

packages/gapic-generator/repositories.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ def gapic_generator_python():
1515
requirements = "@gapic_generator_python//:requirements.txt",
1616
)
1717

18-
_protobuf_version = "3.19.2"
19-
_protobuf_sha256 = "9ceef0daf7e8be16cd99ac759271eb08021b53b1c7b6edd399953a76390234cd"
18+
_protobuf_version = "3.21.12"
19+
_protobuf_sha256 = "930c2c3b5ecc6c9c12615cf5ad93f1cd6e12d0aba862b572e076259970ac3a53"
2020
_protobuf_version_in_link = "v{}".format(_protobuf_version)
2121
_maybe(
2222
http_archive,
2323
name = "com_google_protobuf",
2424
sha256 = _protobuf_sha256,
25-
url = "https://github.com/protocolbuffers/protobuf/archive/refs/tags/{}.zip".format(_protobuf_version_in_link),
25+
url = "https://github.com/protocolbuffers/protobuf/archive/refs/tags/{}.tar.gz".format(_protobuf_version_in_link),
2626
strip_prefix = "protobuf-{}".format(_protobuf_version),
2727
)
2828

packages/gapic-generator/tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/async_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,9 +1348,6 @@ async def sample_delete_instance():
13481348
13491349
}
13501350
1351-
The JSON representation for Empty is empty JSON
1352-
object {}.
1353-
13541351
"""
13551352
# Create or coerce a protobuf request object.
13561353
# Quick check: If we got a request object, we should *not* have

packages/gapic-generator/tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,9 +1542,6 @@ def sample_delete_instance():
15421542
15431543
}
15441544
1545-
The JSON representation for Empty is empty JSON
1546-
object {}.
1547-
15481545
"""
15491546
# Create or coerce a protobuf request object.
15501547
# Quick check: If we got a request object, we should *not* have

0 commit comments

Comments
 (0)