blob: 72e35a55d5366d43640fc380078223eb05a4bbc9 [file] [log] [blame]
"""The input file for the aspect test"""
def my_aspect_impl(ctx):
_ignore = [ctx] # @unused
return []
my_aspect = aspect(
implementation = my_aspect_impl,
doc = "This is my aspect. It does stuff.",
attr_aspects = ["deps", "attr_aspect"],
attrs = {
"first": attr.label(mandatory = True, allow_single_file = True),
"second": attr.string_dict(mandatory = True),
},
)
# buildifier: disable=unsorted-dict-items
other_aspect = aspect(
implementation = my_aspect_impl,
doc = "This is another aspect.",
attr_aspects = ["*"],
attrs = {
"_hidden": attr.string(),
"third": attr.int(mandatory = True),
},
)