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) #11419

Merged
merged 1 commit into from
Jan 7, 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]
@stuhood
Copy link
Member

stuhood commented Jan 6, 2021

Please wait to merge until #11420 is picked.

EDIT: in #11421.
EDIT2: in #11423.

@Eric-Arellano Eric-Arellano merged commit bb855d1 into pantsbuild:2.2.x Jan 7, 2021
@Eric-Arellano Eric-Arellano deleted the cp-tar-22 branch January 7, 2021 18:36
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