criteo / kitchen-transport-speedy

Speed up kitchen file transfer using archives
Apache License 2.0
5 stars 5 forks source link

MacOS tar spews a bunch of extended header warnings #5

Open biox opened 5 years ago

biox commented 5 years ago

On a testkitchen convergence via MacOS's version of BSD tar, we get the following messages:

       tar: Ignoring unknown extended header keyword `SCHILY.dev'
       tar: Ignoring unknown extended header keyword `SCHILY.ino'
       tar: Ignoring unknown extended header keyword `SCHILY.nlink'
       tar: Ignoring unknown extended header keyword `SCHILY.dev'
       tar: Ignoring unknown extended header keyword `SCHILY.ino'

Using gtar (GNU tar) solves this problem. I proposed preferring the 'gtar' command if it's found. Something like this works well for me:

https://github.com/biox/kitchen-transport-speedy/commit/5cc42aa13fd0494ff4fa00b176a9316791576740

Note that the above is not meant to be a final solution, just an example that proposes the feature.

What are your thoughts?

kamaradclimber commented 5 years ago

Thanks for the report, I'd be happy if you could submit a PR based on your patch and we'll discuss implementation specific.

hbokh commented 1 week ago

More than 5 years later... The suggested gtar check from @biox did not work for me on macOS Sonoma 14.6.1. Here is what I did instead to get rid of this issue and these annoying messages:

tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.provenance'

diff speedy_ssh.*
48c48
<           "tar -czf #{archive_path} -C #{::File.dirname(path)} #{::File.basename(path)}"
---
>           "tar --no-xattrs -czf #{archive_path} -C #{::File.dirname(path)} #{::File.basename(path)}"

A pretty simple fix that won't do any harm AFAICS. Do you want me to create a PR for this (too)?

kamaradclimber commented 1 week ago

:wave: I'm not sure this software is still maintained. cc @Annih