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

Use filelists to make archive creation tasks more reliable (Cherry-pick of #16183) #16185

Merged
merged 1 commit into from Jul 18, 2022

Conversation

chrisjrn
Copy link
Contributor

Previously, creating an archive with a large number of input files would cause the binary to fail due to having a too-long command line.

This makes use of tar's --files-from option to consume the input filenames from a file, and replaces our direct zip invocation with a bash script that provides the input filenames by stdin.

There is no practical limit to the length of the file list that can be provided in this way.

Closes #16091

…d#16183)

Previously, creating an archive with a large number of input files would cause the binary to fail due to having a too-long command line. 

This makes use of `tar`'s `--files-from` option to consume the input filenames from a file, and replaces our direct `zip` invocation with a bash script that provides the input filenames by stdin. 

There is no practical limit to the length of the file list that can be provided in this way.

Closes pantsbuild#16091
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]
@chrisjrn chrisjrn requested a review from stuhood July 14, 2022 19:03
@chrisjrn chrisjrn added the category:bugfix Bug fixes for released features label Jul 14, 2022
@Eric-Arellano Eric-Arellano merged commit 0606aef into pantsbuild:2.12.x Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants