-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Tracking of upstream bug in tar
#177
Comments
It seems that it would take quite some time for the upstream to fix it. Since this bug is originally found when downloading |
We can try, but is this something particular to qi or could we get that for someone else? More out there: Are there other tar crates we could evaluate? Or even, how hard would it be to fix ourselves upstream? |
Not sure about that as the feature requires Besides, this problem is limited to the fetchers only.
But to extract a sparse file, it still need post-processing logic in |
Another workaround that we could add is fallback to |
Can we detect that in code? The main issue I see is that we can do it for when we have a Beyond failing the entire fetch and falling back to source, we could also try to fallback to using the |
Also it seems that quick-install is only using normal |
That's doable with #180 , since it provides |
I am genuinely not sure what is happening then. I tried with both the MacOS 12 finder and Only And I haven't yet noticed another tarball that gives me the same error. |
Uhhh that just happened again cargo-bins/cargo-quickinstall#87 , this was discovered in #301 . |
Hi there. I'm as surprised as everyone else. This certainly wasn't on purpose. I suspect that fixing it in the quickinstall archives is going to be a bit involved (and would result in holes in the package repo rather than packages that binstall would understand), but I had a crazy idea of how to fix it on the binstall side (if fixing it in the tar crate is too involved): The tarballs are typically tiny, with a very small number of files, so you could just shell out to It's a hack, but it feels like the kind of hack that can be cleanly encapsulated behind a nice API, and it should be portable to all platforms that cargo-quickinstall supports. |
IMHO I don't like this solution, because it adds runtime external dependency to I would prefer upstream to fix this issue, and it looks like there's already a PR for this alexcrichton/tar-rs#298 |
@passcod It seems that the upstream is especially slow when it comes to PR review. |
@NobodyXu have you verified that the upstream PR actually fixes the issue? |
Not yet, I would do a test right now. |
I've created a fork https://github.com/cargo-bins/tar-rs and would create a PR for this. |
We can close this now that we've got it forked, I think. We'll want to change back once the upstream merges, but it's no longer a bug here. |
alexcrichton/tar-rs#295
tar
failed to handleGNUSparseFile
correctly.The text was updated successfully, but these errors were encountered: