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

Allow PackageFilesInfo/PackageFilegroupInfo as inputs to mtree_spec() and tar() #1040

Open
nnmm opened this issue Jan 28, 2025 · 0 comments
Open

Comments

@nnmm
Copy link

nnmm commented Jan 28, 2025

The rules_pkg package is pretty good at expressing a directory structure to be created in an archive etc., with its PackageFilesInfo and PackageFilegroupInfo providers. mtree files are similar: they also express a directory structure, except it's not known yet at analysis time.

rules_pkg could integrate nicely with the aspect_bazel_lib tar if an mtree spec could be created from targets with PackageFilesInfo or PackageFilegroupInfo. The current approach, where you'd have to mutate an mtree spec with awk or some other tool to match the package structure, is cumbersome by comparison.

Maybe as a second step, support for PackageFilesInfo/PackageFilegroupInfo could be directly added to the tar rule as well, so that the user doesn't need to separately keep the archive inputs as a flat list of files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant