You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[...]
INFO: From ProtoCompile external/protobuf~23.1/python/google/protobuf/empty_pb2.py:
external/protobuf~23.1/.: warning: directory does not exist.
INFO: From ProtoCompile external/protobuf~23.1/python/google/protobuf/source_context_pb2.py:
external/protobuf~23.1/.: warning: directory does not exist.
INFO: From ProtoCompile external/protobuf~23.1/python/google/protobuf/any_pb2.py:
external/protobuf~23.1/.: warning: directory does not exist.
INFO: From ProtoCompile external/protobuf~23.1/python/google/protobuf/duration_pb2.py:
external/protobuf~23.1/.: warning: directory does not exist.
INFO: From ProtoCompile external/protobuf~23.1/python/google/protobuf/api_pb2.py:
external/protobuf~23.1/.: warning: directory does not exist.
INFO: From ProtoCompile external/protobuf~23.1/python/google/protobuf/field_mask_pb2.py:
external/protobuf~23.1/.: warning: directory does not exist.
INFO: From ProtoCompile external/protobuf~23.1/python/google/protobuf/struct_pb2.py:
external/protobuf~23.1/.: warning: directory does not exist.
INFO: From ProtoCompile external/protobuf~23.1/python/google/protobuf/timestamp_pb2.py:
external/protobuf~23.1/.: warning: directory does not exist.
INFO: From ProtoCompile external/protobuf~23.1/python/google/protobuf/type_pb2.py:
external/protobuf~23.1/.: warning: directory does not exist.
INFO: From ProtoCompile external/protobuf~23.1/python/google/protobuf/wrappers_pb2.py:
external/protobuf~23.1/.: warning: directory does not exist.
INFO: From ProtoCompile external/protobuf~23.1/python/google/protobuf/compiler/plugin_pb2.py:
external/protobuf~23.1/.: warning: directory does not exist.
INFO: From ProtoCompile external/protobuf~23.1/python/google/protobuf/descriptor_pb2.py:
external/protobuf~23.1/.: warning: directory does not exist.
[...]
Protobuf team is taking ownership of `py_proto_library` and the
implementation was moved to protobuf repository.
Remove py_proto_library from rules_python, to prevent divergent
implementations.
Make a redirect with a deprecation warning, so that this doesn't break
any users.
Expected side effect of this change is also that the protobuf version is
sufficiently updated that there is no more use of legacy struct
providers.
Closes#1935Closes#1924Closes#1925Closes#1703Closes#1707Closes#1597Closes#1293Closes#1080Fixes#1438
🐞 bug report
Affected Rule
The issue is caused by the rule:
py_proto_library
Is this a regression?
I think some combinations of protobuf and rules_python didn't print this message in the past, but I'm not sure.
Description
When creating a
py_proto_library
rule that depends on a well-known type in theprotobuf
repo, building it will generate spurious warnings of the form🔬 Minimal Reproduction
Create a trivial Bazel workspace
MODULE.bazel:
BUILD:
🔥 Exception or Error
Output of
bazel build :any_py_proto
:🌍 Your Environment
macOS Sonoma
Rules_python version:
0.28
Anything else relevant?
Not sure whether this is an issue with rules_python, protobuf, or Bazel itself. bazelbuild/bazel#7157 and envoyproxy/envoy#28479 seem related.
The text was updated successfully, but these errors were encountered: