Skip to content

runfiles library: support enumerating runfiles under a directory [blocking: #3865] #4334

Closed

Description

@laszlocsomor

Feature request: some function that allows enumerating all runfiles under a directory.

Idea: support maybe a glob-like syntax?

Activity

  1. self-assigned this
    on Dec 20, 2017
  2. added
    P1
    on Dec 20, 2017
  3. laszlocsomor commented on Dec 20, 2017

    @laszlocsomor
    ContributorAuthor

    This is a sub-task of #3865.

  4. changed the title [-]runfiles library: support enumerating runfiles under a directory[/-] [+]runfiles library: support enumerating runfiles under a directory [blocking: #3865][/+] on Dec 20, 2017
  5. added
    P2
    and removed
    P1
    on Dec 20, 2017
  6. laszlocsomor commented on May 16, 2018

    @laszlocsomor
    ContributorAuthor

    Update: this issue is still on my radar, but P2 is appropriate and plenty of P1s are also on my plate. I don't expect to fix this issue before end of Q2, and it may have to wait even more.

  7. added
    area-Windows
    and removed on Dec 10, 2018
  8. laszlocsomor commented on Feb 28, 2019

    @laszlocsomor
    ContributorAuthor

    Dropping to P4 for now. I haven't seen any demand for this feature. It would be nice to have, but there are more important things to work on.

  9. added
    P4
    and removed
    P2
    on Feb 28, 2019
  10. added
    team-OSS
    on Jun 15, 2020
  11. deannagarcia commented on Jan 9, 2023

    @deannagarcia

    I see this issue was closed as complete, did it ever get implemented?

    I have a use case where my sh_binary depends on files generated by another rule. The filenames are known before runtime so I can list them out, but I will have to manually keep the list of files in sync when we want to make changes.

  12. fmeum commented on Jan 10, 2023

    @fmeum
    Collaborator

    This hasn't been implemented yet. In languages with real filesystem abstractions (Java's FileSystem, Go's fs.FS), I would see value in adding e.g. glob support to the runfiles libraries that works across platforms.

    With Shell, it's hard to come up with an abstraction that works well for every use case.

    @deannagarcia Do you also have to support Windows? If not, I would recommend looking up a single runfile, walking up to a common parent directory and just applying find to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4area-Windowsplatform: windowsteam-OSStype: feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions