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

Adds support for Symlinks in all Tar decompressors #171

Merged
merged 1 commit into from
Mar 12, 2019
Merged

Adds support for Symlinks in all Tar decompressors #171

merged 1 commit into from
Mar 12, 2019

Conversation

prologic
Copy link
Contributor

@prologic prologic commented Mar 4, 2019

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)

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)
@hashicorp-cla
Copy link

hashicorp-cla commented Mar 4, 2019

CLA assistant check
All committers have signed the CLA.

@prologic
Copy link
Contributor Author

prologic commented Mar 4, 2019

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.

Copy link

@johnzhanghua johnzhanghua left a 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.

@prologic
Copy link
Contributor Author

🏓

Copy link
Contributor

@azr azr left a 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.

@azr azr merged commit d9c5f68 into hashicorp:master Mar 12, 2019
@prologic
Copy link
Contributor Author

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 (.so, .so.1 and such).

Who shall merge this?

@prologic
Copy link
Contributor Author

Who shall merge this?

nvm :) Thanks!

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 this pull request may close these issues.

4 participants