Skip to content

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

Description

@Phault

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions