Skip to content

tar: add explicit zstd compression support#154

Open
kevinburke wants to merge 1 commit intouutils:mainfrom
kevinburke:zstd-support
Open

tar: add explicit zstd compression support#154
kevinburke wants to merge 1 commit intouutils:mainfrom
kevinburke:zstd-support

Conversation

@kevinburke
Copy link
Copy Markdown

Add an explicit --zstd flag for create, list, and extract so .tar.zst archives work end to end.

Keep the scope narrow by requiring the flag instead of trying to autodetect compression. Add CLI coverage and end-to-end tests for creating, listing, and extracting zstd-compressed archives.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 4, 2026

Codecov Report

❌ Patch coverage is 94.38503% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.59%. Comparing base (2c7a5e6) to head (2b4877b).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/uu/tar/src/operations/compression.rs 78.49% 20 Missing ⚠️
src/uu/tar/src/tar.rs 97.36% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #154       +/-   ##
===========================================
+ Coverage   60.83%   90.59%   +29.76%     
===========================================
  Files           7       11        +4     
  Lines         789     1287      +498     
  Branches       24       25        +1     
===========================================
+ Hits          480     1166      +686     
+ Misses        309      120      -189     
- Partials        0        1        +1     
Flag Coverage Δ
macos_latest 90.59% <94.38%> (+29.76%) ⬆️
ubuntu_latest 90.59% <94.38%> (+29.76%) ⬆️
windows_latest 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kaladron kaladron self-requested a review April 4, 2026 18:01
@kaladron
Copy link
Copy Markdown
Collaborator

kaladron commented Apr 4, 2026

Hi! I'm in the middle of implementing "-f -", and this patch as it's structured will make that work difficult. If you don't mind, I'd like to hold this patch until that lands and I'll rework it. (I also have #149 that centralises the error handling)

@kaladron kaladron self-assigned this Apr 4, 2026
@kevinburke
Copy link
Copy Markdown
Author

no problem - can you ping me when that's complete?

@kaladron
Copy link
Copy Markdown
Collaborator

kaladron commented Apr 4, 2026

Will do! I'm blocked on review of mine, and then I can review yours =)

Add an explicit --zstd flag for create, list, and extract so
.tar.zst archives work end to end.

Keep the scope narrow by requiring the flag instead of trying to
autodetect compression. Add CLI coverage and end-to-end tests for
creating, listing, and extracting zstd-compressed archives.
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