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

Some tar.gz archives dont decompress correctly #27

Open
kageiit opened this issue Apr 28, 2024 · 0 comments · May be fixed by #28
Open

Some tar.gz archives dont decompress correctly #27

kageiit opened this issue Apr 28, 2024 · 0 comments · May be fixed by #28

Comments

@kageiit
Copy link

kageiit commented Apr 28, 2024

Take for example - https://github.com/astral-sh/ruff/releases/download/v0.4.2/ruff-0.4.2-aarch64-apple-darwin.tar.gz

When decompressing with tar - tar -xvf ruff-0.4.2-aarch64-apple-darwin.tar.gz , it outputs ruff

But with dotslash v0.41.0, it outputs DOTSLASH_CACHE/23/d6c44ba88ccffacf9de63082a597f3d2ad77f7/GNUSparseFile.0/ruff

Seems like this entry type variant might need special handling possibly

https://docs.rs/tar/latest/tar/enum.EntryType.html#variant.GNUSparse

Relevant config for dtslash

"macos-aarch64": {
      "size": 8144818,
      "hash": "blake3",
      "digest": "02b131cb0da1e157ddf1ab96cc100c25b519d052a4cf6c55602614425b2fa37d",
      "format": "tar.gz",
      "path": "GNUSparseFile.0/ruff",
      "providers": [
        {
          "url": "https://github.com/astral-sh/ruff/releases/download/v0.4.2/ruff-0.4.2-aarch64-apple-darwin.tar.gz"
        }
      ]
    }

Interestingly, running GNUSparseFile.0/ruff via dotslash fails. But running the directly downloaded binary works as expected

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 a pull request may close this issue.

1 participant