-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Provide a tiny tar utility for use in tests #11183
Comments
- clean up Python 2/3 migration hacks - #11183 RELNOTES: Dropped fragile xz support from built in pkg_tar. Users requiring xz compression should switch to bazlebuild/rules_pkg. PiperOrigin-RevId: 371394411
My thinking as of late is to remove all the extra features from the internal pkg_tar and let it become the mini-tar. |
Specifically: - Remove the dependency on six - Switch to pure python3 - Remove a capability to push raw data from a python program into a tar file. The capability was in an internal library, which no one should be using. See: #11183 RELNOTES: None PiperOrigin-RevId: 377908363
I picked this up again for now. Rough plan:
It is very back burner, so it may take a few months. |
Also did some mini README cleanup (even though it should all be removed) Advances: #11183 We can get to the mini-tar by slowly removing featuers from pkg_tar. RELNOTES: None PiperOrigin-RevId: 437462604
This PR uses selected parts of tools/build_defs/pkg. It is not the way I would have wrote it, but it is based on stuff that has been working for years, so I am disinclined to rewrite it totally. It is solely intended for use bazel's tests, and not distributed as part of the product. It also contains some vestigial features from the old code that are only half enabled here - like adding symlinks. I want to keep that around in case I need it for the blackbox tests. If not, I can fully delete or enable it after I make that assessment. Part of #11183 Next PR: Use it in src/test/java/com/google/devtools/build/lib/blackbox/tests/workspace. Closes #15028. PiperOrigin-RevId: 450908743 Change-Id: I7c393ab264924ef475e65321bdcd817b02cb0819
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
Proposal: Create a rule(s) that can create a zip/tar archives from a set of sources. This would not be available at Bazel runtime as part of @tools (even though the source might go in //tools for lack of a better place). The capabilities would be to bundle up a list of sources and rename some files along the way. It would be stripped down version of the rules from pkg_tar.
Need:
Rewriting them to depend on the rules_pkg distribution is possible, but introduces an external dependency buried in code. The package checksum ends up appearing in Java test code that is writing a WORKSPACE file. This is extremely ugly.
As an alternative, we could minimize chance of drift between rules_pkg in the build and tests by reusing the imported repo.
The text was updated successfully, but these errors were encountered: