Skip to content

Commit 2ad2002

Browse files
alexeaglerickeylev
authored andcommitted
refactor: cleanup now-unreferenced proto toolchain type (#2620)
Follow-up to #2604, fixes a breaking change in v1.2.0-rc0 Note that this toolchain_type became unused in that PR. We leave behind an alias to make this a non-breaking change. Verified in a downstream repo that requires the toolchain_type to register pre-built `protoc`: https://github.com/aspect-build/toolchains_protoc/pull/50/files --------- Co-authored-by: Richard Levasseur <[email protected]> (cherry picked from commit f9779ee)
1 parent ae361c2 commit 2ad2002

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

python/proto/BUILD.bazel

+8-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,11 @@
1414

1515
package(default_visibility = ["//visibility:public"])
1616

17-
# Toolchain type provided by proto_lang_toolchain rule and used by py_proto_library
18-
toolchain_type(name = "toolchain_type")
17+
# Deprecated; use @com_google_protobuf//bazel/private:python_toolchain_type instead.
18+
# Alias is here to provide backward-compatibility; see #2604
19+
# It will be removed in a future release.
20+
alias(
21+
name = "toolchain_type",
22+
actual = "@com_google_protobuf//bazel/private:python_toolchain_type",
23+
deprecation = "Use @com_google_protobuf//bazel/private:python_toolchain_type instead",
24+
)

0 commit comments

Comments
 (0)