Glob for Repository Rules #16887
Labels
P4
This is either out of scope or we don't have bandwidth to review a PR. (No assignee)
team-Rules-API
API for writing rules/aspects: providers, runfiles, actions, artifacts
type: feature request
Hi wonderful Bazelers,
Description of the feature request:
It'd be handy if there were a glob function on repository_ctx and/or path--similar semantically to the glob functions otherwise, but runnable in repository rules and returning paths.
What underlying problem are you trying to solve with this feature?
As in BUILD files, glob is often ergonomically nice and encourages simple code, especially because of the prohibition on recursion. The path API does exist, as does the ability to exec arbitrary programs, but I'm filing this because I'd seen a couple places in a row where more complex code was written (in the recently released Blaze ndk rules, for example) because this didn't exist.
Thanks!
Chris
(ex-Googler)
The text was updated successfully, but these errors were encountered: