Skip to content

Commit 423fb7f

Browse files
committed
chore: update location of toolchain type, accounting for rules_python breaking change
1 parent d65c014 commit 423fb7f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

examples/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
load("@rules_go//proto:def.bzl", "go_proto_library")
22
load("@rules_proto//proto:defs.bzl", "proto_library")
3-
load("@rules_python//python:proto.bzl", "py_proto_library")
3+
load("@protobuf//bazel:py_proto_library.bzl", "py_proto_library")
44

55
package(default_visibility = ["//visibility:public"])
66

examples/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ bazel_dep(name = "toolchains_protoc", version = "0.0.0")
22
bazel_dep(name = "aspect_bazel_lib", version = "2.11.0")
33
bazel_dep(name = "aspect_rules_py", version = "1.3.2")
44
bazel_dep(name = "platforms", version = "0.0.11")
5+
bazel_dep(name = "protobuf", version = "29.3")
56
bazel_dep(name = "rules_java", version = "8.6.3")
67
bazel_dep(name = "rules_proto", version = "7.1.0")
78
bazel_dep(name = "rules_python", version = "1.2.0-rc0")

examples/tools/toolchains/BUILD.bazel

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ proto_lang_toolchain(
1515
command_line = "--python_out=%s",
1616
progress_message = "Generating Python proto_library %{label}",
1717
runtime = "@pypi//protobuf",
18-
toolchain_type = "@rules_python//python/proto:toolchain_type",
18+
# NB: this was moved from rules_python in
19+
# https://github.com/protocolbuffers/protobuf/commit/3c3d4900bc5e6270aec832f64c87d9cdfe57befb
20+
toolchain_type = "@protobuf//bazel/private:python_toolchain_type",
1921
)
2022

2123
# Same as above, but for Java

0 commit comments

Comments
 (0)