Skip to content

incompatible_disable_legacy_proto_provider: Remove legacy dep.proto. access to the proto provider #7152

Description

@lberki

We are migrating off of legacy providers that are addressed by name to providers addressed: https://bazel.build/designs/skylark/declared-providers.html

This bug is for migrating the provider containing information about .proto files. The following changes are required in Starlark sources:

  • Change the way the provider is accessed from ctx.attr.dep.proto. to ctx.attr.dep[ProtoInfo]
  • Change the way the presence of provider is checked from hasattr(dep, "proto") to ProtoInfo in dep
  • Change the way a rule requires a provider from providers = [["​proto"]] to providers = [[ProtoInfo]]

Metadata

Metadata

Assignees

Labels

P1I'll work on this now. (Assignee required)incompatible-changeIncompatible/breaking changeteam-Rules-ServerIssues for serverside rules included with Bazel

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions