Open kpark-hrp opened 12 months ago
This is an antipattern, because it's flattening a potentially large depset in order to search for a file. Skylib should not support such antipatterns or suggest people use them.
What to do instead? It's hard to suggest alternative without a specific example at hand.
select_file
rule currently only searches withinDefaultInfo.files
.I was wondering if we can add an argument to
select_file
to optionally expand the search criteria to includeDefaultInfo.default_runfiles
It would look something like this.