Skip to content

Commit 493906c

Browse files
committed
Remove transitive legacy struct provider usage
1 parent b07525c commit 493906c

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ test --test_output=errors
1717
# Python targets as required.
1818
build --incompatible_default_to_explicit_init_py
1919

20+
# Ensure ongoing compatibility with this flag.
21+
common --incompatible_disallow_struct_provider_syntax
22+
2023
# Windows makes use of runfiles for some rules
2124
build --enable_runfiles
2225

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bazel_dep(name = "platforms", version = "0.0.4")
1111

1212
# Those are loaded only when using py_proto_library
1313
bazel_dep(name = "rules_proto", version = "6.0.0-rc1")
14-
bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf")
14+
bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf")
1515

1616
internal_deps = use_extension("//python/private/bzlmod:internal_deps.bzl", "internal_deps")
1717
use_repo(

examples/bzlmod/MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ local_path_override(
1515
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
1616

1717
# (py_proto_library specific) Add the protobuf library for well-known types (e.g. `Any`, `Timestamp`, etc)
18-
bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf")
18+
bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf")
1919

2020
# We next initialize the python toolchain using the extension.
2121
# You can set different Python versions in this block.

internal_deps.bzl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,10 @@ def rules_python_internal_deps():
173173

174174
http_archive(
175175
name = "com_google_protobuf",
176-
sha256 = "75be42bd736f4df6d702a0e4e4d30de9ee40eac024c4b845d17ae4cc831fe4ae",
177-
strip_prefix = "protobuf-21.7",
176+
sha256 = "72bae766561149f8507a81647f91fc519d2a60309613f004ed307cb5f9b1242b",
177+
strip_prefix = "protobuf-23.1",
178178
urls = [
179-
"https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v21.7.tar.gz",
180-
"https://github.com/protocolbuffers/protobuf/archive/v21.7.tar.gz",
179+
"https://github.com/protocolbuffers/protobuf/releases/download/v23.1/protobuf-23.1.tar.gz",
181180
],
182181
)
183182

0 commit comments

Comments
 (0)