Skip to content

Commit

Permalink
Add a deprecation warning to py_proto_library (#19032)
Browse files Browse the repository at this point in the history
* Add a deprecation warning to py_proto_library

* Remove redundant 29.0 mention

* Clarify warning message
  • Loading branch information
mkruskal-google authored Oct 30, 2024
1 parent bb287be commit 53cde64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protobuf.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,9 @@ def py_proto_library(
This is provided for backwards compatibility only. Bazel 5.3 will
introduce support for py_proto_library, which should be used instead.
"""
print("The py_proto_library macro is deprecated and will be removed in the "
+ "30.x release. switch to the rule defined by rules_python or the one "
+ "in bazel/py_proto_library.bzl.")
internal_py_proto_library(*args, **kwargs)

def _source_proto_library(
Expand Down

0 comments on commit 53cde64

Please sign in to comment.