You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
runfiles library: support enumerating runfiles under a directory [blocking: #3865] #4334
P4This is either out of scope or we don't have bandwidth to review a PR. (No assignee)area-WindowsWindows-specific issues and feature requestsplatform: windowsteam-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: feature request
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
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.
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.
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.
P4This is either out of scope or we don't have bandwidth to review a PR. (No assignee)area-WindowsWindows-specific issues and feature requestsplatform: windowsteam-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: feature request
Activity
laszlocsomor commentedon Dec 20, 2017
This is a sub-task of #3865.
[-]runfiles library: support enumerating runfiles under a directory[/-][+]runfiles library: support enumerating runfiles under a directory [blocking: #3865][/+]laszlocsomor commentedon May 16, 2018
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.
laszlocsomor commentedon Feb 28, 2019
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.
deannagarcia commentedon Jan 9, 2023
I see this issue was closed as complete, did it ever get implemented?
I have a use case where my
sh_binarydepends 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.fmeum commentedon Jan 10, 2023
This hasn't been implemented yet. In languages with real filesystem abstractions (Java's
FileSystem, Go'sfs.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
findto that.