-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unexpected EOF in archive, when installing via renv #37
Comments
For me, the following was a reproducible example:
Or perhaps more concretely?
For what it's worth, it seems only the binary package is affected; the source package doesn't run into this same issue. |
@almahmoud Any thoughts on this? |
Sorry for the delay in a response, this is a weird one... eg not working
eg working
However, there seems to be another issue with how renv is doing it, as even downloading the correct binary after following the redirect, it still errors out on the tar command with specifying a file to get out. However, I can manually untar the whole thing from the cache, so the issue seems to be something else here... I have no idea why it works untaring the whole thing but not specifying a file...
Will look more into it tomorrow... |
The binary tarball is corrupted as showed by @kevinushey's last "more concretely" example. To be even more concrete I can reproduce this from the Unix shell with:
The interesting part here is that the listing produced by At the root of the problem is a bug in
Problem is that This would need to be reported to the R core team. In the mean time an easy workaround is to set environment variable @almahmoud Can we set |
@almahmoud I don't think many R package source tarballs contain symlinks. I'm not sure it's even a good idea to produce R package source tarballs with symlinks, but that's kind of an orthogonal story. All this to say that maybe Rhtslib is the only binary that needs to be regenerated, in which case I could just bump its version in release and devel after you've set Also note that a simple way to programmatically detect corrupted binaries is with:
I don't know if this is something that you could maybe add to the script that generates these binaries, if it's not too hard to do? This would give us an idea of how many packages are currently affected and help us avoid generating corrupted binaries in the future. |
Thanks for the investigation @hpages -- I was able to put together a reproducible example using the discussion here as inspiration, and filed an issue for R Core at https://bugs.r-project.org/show_bug.cgi?id=18790. |
Awesome! Thanks for doing that @kevinushey |
Many thanks for following up! |
Dear Authors,
I have an error which I've encountered when trying to install Rhtslib (and others) via Docker on Mac (M3).
I have raised this issue on the renv repo, but people have suggested the issue also persists for them not using Renv, and it might be an issue with Apple machines (although this needs to be confirmed later).
Issue link on renv: https://github.com/rstudio/renv/issues/1957
In short, when trying to install via Docker, I get the following error:
To avoid duplication, please see the issue linked above.
Can you tell me if this is this an Rhtslib issue, or an renv issue?
Edit:
A suggestion was made that this might be Mac related, as such I've tried to enforce the Dockerfile to use the linux/amd64 platform instead. However, both me and another user who replied use Macs.
The text was updated successfully, but these errors were encountered: