Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
cc_file_list_aspect
to handle targets with missing `hdrs/tex…
…tual_hdrs` Our stale file regeneration logic broke with Bazel 6.4.0, and I suspect it was caused by this change: bazelbuild/bazel#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
- Loading branch information