Skip to content

fix(base-tar): skip GNU-sparse tar test when only bsdtar is available - #101

Merged
deer merged 1 commit into
mainfrom
mac_tar_fix
Jul 30, 2026
Merged

fix(base-tar): skip GNU-sparse tar test when only bsdtar is available#101
deer merged 1 commit into
mainfrom
mac_tar_fix

Conversation

@deer

@deer deer commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

TarInputStreamTests#shouldReadGnuSparseFile shelled out to tar --sparse, which fails on macOS because the system tar there is bsdtar and doesn't understand the GNU --sparse flag.

The test now calls a new findGnuTarBinary() helper that probes tar and then gtar (the name Homebrew's gnu-tar installs under) by running --version and checking the output for GNU tar. If neither resolves to a real GNU tar, the test skips itself via Assumptions.assumeTrue with a message explaining why, instead of failing outright.

@deer
deer merged commit 04e1621 into main Jul 30, 2026
3 checks passed
@deer
deer deleted the mac_tar_fix branch July 30, 2026 03:37
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.

1 participant