-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the legacy .proto.
provider
#6901
Comments
Is ProtoInfo documented? Does it replace also the sources provider?
…On Wed, 12 Dec 2018 at 17:36 lberki ***@***.***> wrote:
We now have the ProtoInfo provider, which is its modern version.
A flag needs to be added that disables ctx.dep.proto. and all uses need
to be migrated to ctx.dep[ProtoInfo].
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6901>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF6PS3AHpKvBIYBoHXeZgo1u9FUODks5u4SJjgaJpZM4ZProk>
.
|
What's the sources provider? ( |
… On Thu, 13 Dec 2018 at 9:15 lberki ***@***.***> wrote:
What's the sources provider?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6901 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIFwTHDnPxWP0rR500i2lwEsKN5Wg9ks5u4f6cgaJpZM4ZProk>
.
|
|
Also fix an embarrassing issue that made the tests in BazelProtoInfoStarlarkTest silently *always pass*. The root cause of that is that we swallow loading-phase errors for some reason (#6902), but let's fix that in a different change. Progress towards #6901. RELNOTES: None. PiperOrigin-RevId: 225339799
Related to #7347 I don't think we should special case |
If you are willing to take a step that's that big... |
Are there plans to make I understand that Thanks! I'd love to contribute to make this happen if you think it's the right thing to do, and you're only strapped for cycles. |
Why do you need to instantiate the provider? That would typically make sense when creating your own iproto_library, and in that case I'd prefer to improve existing proto_library. |
Ah now I see your comment on protocolbuffers/protobuf#6163 (comment). That's a very complicated usecase that I don't understand :) You write you "suspect" that this will help you, or maybe the Proto sandwich would. I think of sandwich API as not a way to call native.proto_library, but a way to register the same actions as proto_library would. Can you maybe simplify the usecase so I can understand it and maybe we'll come up with a way forward? |
I'd love to remove legacy struct providers this year, not sure whether it'll happen. In the meantime, if a flag helps the proto rules migrate off legacy structs, that's fine; I took the same approach in Triaging to the Build API team. |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team ( |
We now have the
ProtoInfo
provider, which is its modern version.A flag needs to be added that disables
ctx.dep.proto.
and all uses need to be migrated toctx.dep[ProtoInfo]
.The text was updated successfully, but these errors were encountered: