-
Notifications
You must be signed in to change notification settings - Fork 239
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
Adds support for Symlinks in all Tar decompressors #171
Conversation
This is useful when using Nomad's Artefact mechanisms which internally uses `hashicorp/go-getter` to unpack Tar archives that are built from container root file systems (*which usually contain symlinks for runtime libraries*). Fixes #60 and supercedes the very old PR #37 (We use a variant of this patch in our production systems and we need to get this into upstream as soon as conveniently possible)
NB: I deliberately did not add Hard link support here as we don't really need it for our use-case and that can come later as a separate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forget about my previous comment.
🏓 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM ! And tests check that symlinks are written as symlinks ! 👍.
Too bad for hardlinks but may be in another PR.
Thanks for the review and approval! Yeah we don't really need hardlinks anyway as I know of no root file-system tooling that generate hardlinks instead of symlinks for system/application libraries ( Who shall merge this? |
nvm :) Thanks! |
This is useful when using Nomad's Artefact mechanisms which internally
uses
hashicorp/go-getter
to unpack Tar archives that are built fromcontainer root file systems (which usually contain symlinks for runtime
libraries).
Fixes #60 and supercedes the very old PR #37
(We use a variant of this patch in our production systems and we need to
get this into upstream as soon as conveniently possible)