abergmeier
abergmeier

Reputation: 14052

Unexpected data_runfiles of filegroup appearing in aspect

I have an aspect like this:

def _foo_aspect_impl(target, aspect_ctx):
    fail("KIND: {}, DATA_RUNFILES: {}".format(aspect_ctx.rule.kind, [p.path for p in target.data_runfiles.files]))

which fails with the error:

KIND: filegroup, DATA_RUNFILES: [<hugelistofsrcsfiles>]

What puzzles me is that I never declared data files on this filegroup. So I am wondering where these are coming from. I absolutely do not want them here.

Upvotes: 0

Views: 121

Answers (1)

Damien Martin-Guillerez
Damien Martin-Guillerez

Reputation: 2370

As seen in the Filegroup code, the filegroups declare only one kind of runfile provider: data runfiles provider. I guess you might want to open a feature request on Github and have a proper discussion of what you want there.

Upvotes: 1

Related Questions