Skip to content

Commit 53cde64

Browse files
Add a deprecation warning to py_proto_library (#19032)
* Add a deprecation warning to py_proto_library * Remove redundant 29.0 mention * Clarify warning message
1 parent bb287be commit 53cde64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

protobuf.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,9 @@ def py_proto_library(
647647
This is provided for backwards compatibility only. Bazel 5.3 will
648648
introduce support for py_proto_library, which should be used instead.
649649
"""
650+
print("The py_proto_library macro is deprecated and will be removed in the "
651+
+ "30.x release. switch to the rule defined by rules_python or the one "
652+
+ "in bazel/py_proto_library.bzl.")
650653
internal_py_proto_library(*args, **kwargs)
651654

652655
def _source_proto_library(

0 commit comments

Comments
 (0)