Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create pkg_tree rule for creation of in-buildroot directory structures #388

Open
nacl opened this issue Jul 19, 2021 · 2 comments
Open

Create pkg_tree rule for creation of in-buildroot directory structures #388

nacl opened this issue Jul 19, 2021 · 2 comments
Labels
P3 An issue that we are not working on but will review quarterly

Comments

@nacl
Copy link
Collaborator

nacl commented Jul 19, 2021

Sometimes, users need to pass directories to commands as a part of their builds. When these directories are created from many parts of the build tree, it can be convenient to use the pkg_filegroup framework to assemble them.

pkg_install is a bit raw for use internally, and may not be compatible in all circumstances. Among other things, it may assume that it can do things that aren't supported by or propagated out of the buildroot.

Consider instead a pkg_tree rule, which creates a tree of files rooted in bazel's buildroot, only doing the basics. The output could then be consumed by other targets as needed.

@nacl nacl added the P3 An issue that we are not working on but will review quarterly label Jul 19, 2021
@alexeagle
Copy link
Collaborator

note, somewhat related bazelbuild/bazel-skylib#323

@aiuto
Copy link
Collaborator

aiuto commented Oct 23, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 An issue that we are not working on but will review quarterly
Projects
None yet
Development

No branches or pull requests

3 participants