SIGN IN SIGN UP

Protocol Buffers - Google's data interchange format

0 0 35 C++

Update `cc_file_list_aspect` to handle targets with missing `hdrs/textual_hdrs`

Our stale file regeneration logic broke with Bazel 6.4.0, and I suspect it was
caused by this change: https://github.com/bazelbuild/bazel/pull/19534 Our logic
assumed that any target with a `CcInfo` provider must have `hdrs` and
`textual_hdrs` attributes, but it seems that this is no longer true for
`cc_proto_library` starting with Bazel 6.4.0. The fix is just to use `getattr`
and treat the item as an empty list if it's missing.

PiperOrigin-RevId: 575473886
A
Adam Cozzette committed
77aa913e689304329b6e3df71eea9944acfbc62f
Parent: 8b2a3a6
Committed by Copybara-Service <copybara-worker@google.com> on 10/21/2023, 4:40:32 PM