-
Notifications
You must be signed in to change notification settings - Fork 39
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
render::unpack fails for some images. #149
Comments
Thanks for reporting this. I would expect
I think this should be the goal, yes. It seems that the PR you linked has a larger scope than this and it would probably be better to separate that. |
Cross-referencing: alexcrichton/tar-rs#132. |
Thanks, but what if just the symlink is changed to point to a different path? That's not the same as following a link and overwriting the target file. |
JFYI, I am implementing an application which partially overlaps this crate's functionality. I ended up replacing tar-rs with libarchive. There are existing libarchive bindings, yet those are poorly maintained, so I created my own. Unpacker: libarchive glue code: https://github.com/akhramov/werft/blob/master/baustelle/src/archive/resource.rs -- reads & extracts archives |
Shame, since it's a public holiday here, I just got around to tackling this. Still created a more focused PR. (alexcrichton/tar-rs#229) All the best! |
@moschroe thanks! That PR has landed by now so we'll have this in the next tar-rs release 🎉 |
Hi, thanks for your awesome library! I think I found a little bug, described below. Aside from that -- great overall experience, thanks!
Description
Alpine-based images make a heavy use of symlinks.
As it stands now,
tar-rs
overwrites files and not symlinks. (alexcrichton/tar-rs/pull/217)If layers create a symlink in the same location,
render::unpack
will fail.Steps to reproduce:
cargo run --example image registry-1.docker.io nginxdemos/hello
Expected result:
Actual result:
Known workaround:
None yet, shall
tar-rs
be fixed?The text was updated successfully, but these errors were encountered: