Skip to content

Conversation

dougthor42
Copy link

Fixes #972

docs/latest.md Outdated
| <a id="pkg_tar-empty_dirs"></a>empty_dirs | - | List of strings | optional | `[]` |
| <a id="pkg_tar-empty_files"></a>empty_files | - | List of strings | optional | `[]` |
| <a id="pkg_tar-extension"></a>extension | - | String | optional | `"tar"` |
| <a id="pkg_tar-extension"></a>extension | The extension of the generated file. If `"gz"`, `"bz2"`, or `"xz"`, the tarball will also be compressed using that tool, and is mutually exclusive with `compressor`. Note that `xz` may not be supported based on the Python toolchain. | String | optional | `"tar"` |
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that xz may not be supported based on the Python toolchain.

I'm not 100% sure this is true. The source has a TODO to confirm xz availabilty, but it's been there for > 3 years now and HAS_XZ_SUPPORT is True.

# TODO(aiuto): Figure out how to get this from the python toolchain.
# See check for lzma in archive.py for a hint at a method.
HAS_XZ_SUPPORT = True

Maybe I just shouldn't mention that xz might not be supported?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the problem is that it won't work if you change it here.
It will get lost on the next release update when the file is generated. You need to change it in the rule souce.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks for letting me know. I've updated the starlark source instead, please LMK if there's something else I'm supposed to do.

@dougthor42 dougthor42 requested a review from cgrindel as a code owner October 4, 2025 03:24
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.

Document compression support for pkg_tar

2 participants