Issue #15841 has been updated by Ken Barber.

> How about using
> 
> gunzip < file.tar.gz |tar xfv - 
> 
> which will work on all *nix instances?

... but not windows unless we ship tar and gzip on windows.

Its not just about unpacking a tarball like this, its about wanting extra 
controls like - what umask gets used during unpacking. What user the files get 
unpacked as etc. etc. these are switches that vary depending on the Unix, and 
while yes - I could run commands after the fact to make some of this happen, 
its far more finicky then say having a single tool that works consistently 
across OS.

Its also about analyzing file contents without unpacking it, again in a 
consistent way, so we can analyze metadata.json files for example.
----------------------------------------
Refactor #15841: Consider bundling minitar (or equivalent) for use by puppet 
module face
https://projects.puppetlabs.com/issues/15841#change-69743

Author: Ken Barber
Status: Needs Decision
Priority: Normal
Assignee: 
Category: module tool
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 
https://github.com/kbarber/puppet/tree/ticket/2.7.x/15841-module_face_minitar


This ticket is to track the potential bundling of minitar into Puppet for use 
by the puppet module face for building and installing modules:

<https://github.com/halostatue/minitar>

Right now, we have to use the system provided tar implementation which creates 
extra load in regards to: detecting which type (gnutar, bsdtar, suntar), 
detecting the version (and switches supported) and features (some tar 
implementations allow unpacking with absolute paths with no control for 
example).

There is also the problem of the windows platform - whereby unless through 
installation of external tools - tar on Windows will not be available, thereby 
puppet module face will not work.

I propose we vendor/fork minitar ourselves, in a distribution compliant way 
somehow so we can get around these issues.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to