chef / cookbook-omnifetch

Fetch Chef Cookbooks from Various Sources to a Local Cache
Apache License 2.0
6 stars 9 forks source link

Minitar library doesn't properly handle cookbooks uploaded to Supermarket from OSX #3

Closed jayhendren closed 8 years ago

jayhendren commented 8 years ago

Cookbooks uploaded to the Supermarket using knife cookbook site on OSX cause issues with Chef and Chef utilites, such as Berksfile. This is already documented in a few places:

Ultimately, the cause of the issue is that Minitar only supports POSIX tar, and doesn't support GNU, or, as is relevant to this issue, BSD tar. The cookbook-omnifetch gem is also vulnerable to this issue, as it, too, uses Minitar.

Here is an example of the issue as it occurs using chef install and TestKitchen:

One solution is to remove directories named "PaxHeader" after unpacking a cookbook with Minitar. Another solution is to abandon Minitar.