A rule that provides file(s) specific via DefaultInfo from a given target's DefaultInfo or OutputGroupInfo.

See also select_file from bazel-skylib.

output_files

A rule that provides file(s) specific via DefaultInfo from a given target's DefaultInfo or OutputGroupInfo

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
output_groupif set, we look in the specified output group for paths instead of DefaultInfoStringoptional""
pathsthe paths of the file(s), relative to their roots, to provide via DefaultInfo from the given target's DefaultInfo or OutputGroupInfoList of stringsrequired
targetthe target to look in for requested paths in its' DefaultInfo or OutputGroupInfoLabelrequired

make_output_files

Helper function to generate a output_files target and return its label.

PARAMETERS

NameDescriptionDefault Value
nameunique name for the generated output_files targetnone
targettarget attribute passed to generated output_files targetnone
pathspaths attribute passed to generated output_files targetnone
kwargsparameters to pass to generated output_files targetnone

RETURNS

The label name