Writing an aspect that traverses _all_ dependency attributes #27460
Unanswered
bd-tkoolen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The file count example in the
aspectdocumentation shows how to collect information from dependencies that are listed specifically in asrcsattribute. But what is the best way to visit all dependency attributes, regardless of their name and type?So far, the only "generic" way of visiting all dependency attribute labels (in
attr.label_lists,attr.labels,attr.label_keyed_string_dicts, andattr.string_keyed_label_dicts) I found is:But this is rather messy. Is there a better way to visit all of the target's dependency attribute labels in an aspect?
Beta Was this translation helpful? Give feedback.
All reactions