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

Fix older versions of tar not working when creating an archive (Cherry-pick of #11413) #11418

Merged
merged 5 commits into from Feb 4, 2021

Conversation

Eric-Arellano
Copy link
Contributor

[ci skip-rust]
[ci skip-build-wheels]

…antsbuild#11413)

A user reported that the builtin `tar` on macOS Mojave (2.8) was erroring because of the argv including `a`. We instead can explicitly specify the format.

Note that not all formats will still work on older tar versions, e.g. 2.8 does not support the `J` flag to create `.tar.xz`. The user will need to choose a compatible `format` instead like `tar`. We do not eagerly detect this situation because there are so many implementations of `tar` - it's an open question if we should check the failed process, though, so that we can augment the error message with info on this possible gotcha?

[ci skip-rust]
[ci skip-build-wheels]
[ci skip-rust]

[ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
This reverts commit b892663.

[ci skip-rust]

[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano merged commit 1a6b67d into pantsbuild:2.1.x Feb 4, 2021
@Eric-Arellano Eric-Arellano deleted the cp-tar-21 branch February 4, 2021 16:13
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.

None yet

2 participants