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 mini_tar and switch to it for our blackbox tests. #14935

Closed
wants to merge 5 commits into from

Conversation

aiuto
Copy link
Contributor

@aiuto aiuto commented Mar 2, 2022

Add @bazel_tools/build_defs/pkg/tar.bzl%mini_tar.
This is limited functionality tar file builder. Its purpose is mainly for building tar files inside tests, where we do not want to take a dependency on the external repository @rules_pkg.

This means bazel itself does not depend on tools/build_defs/pkg/pkg.bzl at all any more, so we are free to delete that as soon as we have migrated the last of the users away.

Advances #11183

@aiuto aiuto added the wip label Mar 2, 2022
@aiuto aiuto marked this pull request as draft March 2, 2022 18:58
@aiuto aiuto changed the title Create mini_tar and use it for our blackbox tests. Create mini_tar and switch to it for our blackbox tests. Mar 3, 2022
@aiuto aiuto removed the wip label Mar 3, 2022
@aiuto aiuto marked this pull request as ready for review March 3, 2022 20:27
@aiuto aiuto requested review from oquenchil and meteorcloudy and removed request for oquenchil March 6, 2022 19:28
@meteorcloudy
Copy link
Member

Its purpose is mainly for building tar files inside tests

Is it possible to move mini_tar as a data dependency of the test instead of still shipping it in @bazel_tools? Because what if users accidentally depend on this?

@aiuto
Copy link
Contributor Author

aiuto commented Mar 7, 2022

I can do that. But it's going to take some time to detangle the test.
Also, will want to refactor the tar builder so it is a single file first, so there is less to bundle.
I'll come back to it after perf time and close this out for now to avoid clutter.

@aiuto aiuto closed this Mar 7, 2022
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

Successfully merging this pull request may close these issues.

2 participants