Skip to content

request: look up runfile matches given only filename #437

@peakschris

Description

@peakschris

For our use case it would be really helpful if the runfiles library had an API that took a filename and returned a vector of matches for that filename. Clearly this will iterate the entire std::map and be quite expensive and for our use case that is fine. We are replacing lookup of an executable by name in our legacy build with lookup of the same thing via runfiles and having to update all calling sites with bazel path is challenging for us. Plus the name based search would allow us to move executables around in our repo without modifying the call sites.

Thanks! Chris

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)type: feature requestRequest for new, generally useful functionality that is missing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions