Skip to content

incompatible_blacklisted_protos_requires_proto_info: Require ProtoInfo provider for proto_lang_toolchain.blacklisted_protos #11694

@Yannic

Description

@Yannic

Flag: --incompatible_blacklisted_protos_requires_proto_info

Prevents users from passing .proto files / filegroups to proto_lang_toolchain.blacklisted_protos.

Migration

For most users, migration is straight forward. All that is required is upgrading Protobuf to v3.13.0 (or later).

When using proto_lang_toolchain directly

If you're using proto_lang_toolchain directly, you need to replace the files in
proto_lang_toolchain.blacklisted_protos with the proto_library targets containing these files.

For WKPs, this would mean replacing

proto_lang_toolchain(
    name = "my_proto_toolchain",
    blacklisted_protos = [
        "@com_google_protobuf//:src/google/protobuf/any.proto",
        "@com_google_protobuf//:src/google/protobuf/descriptor.proto",
        # ...
    ],
    # ...
)

with

proto_lang_toolchain(
    name = "my_proto_toolchain",
    blacklisted_protos = [
        "@com_google_protobuf//:any_proto",
        "@com_google_protobuf//:descriptor_proto",
        # ...
    ],
    # ...
)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions