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

starbase_archive cannot extract tar.gz created using macos' tar #56

Closed
Phault opened this issue Mar 2, 2024 · 1 comment
Closed

starbase_archive cannot extract tar.gz created using macos' tar #56

Phault opened this issue Mar 2, 2024 · 1 comment

Comments

@Phault
Copy link

Phault commented Mar 2, 2024

I'm trying to create a proto plugin for ruff, but hit a snag with the Mac releases. The tar files for Mac are created using the inbuilt tar of the macos-latest runner.

But it turns out that tar version apparently uses a "GNU Sparse File extension", which tar-rs does not currently support. The result is that extraction spits out a "GNUSparseFile.0" directory containing corrupted archive files.

There is an old PR lying around to fix this, but it has been stale for 2 years.. The cargo-binstall guys created a temporary fork with the fix, while they wait for the PR to get merged. So that's one way to go at least.

You can test it yourself on a Mac using https://github.com/Phault/proto-toml-plugins/tree/main/ruff

@Phault Phault changed the title starbase_archive cannot extract tar.gz created on using macos' tar starbase_archive cannot extract tar.gz created using macos' tar Mar 3, 2024
@milesj
Copy link
Collaborator

milesj commented Mar 4, 2024

Unfortunate but switching #60

@milesj milesj closed this as completed Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants