Module: CopyMacosTarSupport

Defined in:
lib/ndr_dev_support/capistrano/macos_bsdtar.rb

Overview

Do not include macOS extended attributes in capistrano tar files

Without this, the system default tar (bsdtar) creates AppleDouble files with a ._ prefix, and the linux default tar (gnutar) generates many warnings such as: tar: Ignoring unknown extended header keyword ‘LIBARCHIVE.xattr.com.apple.provenance’

This fix works because we compress files only locally, for capistrano deployments. If we were compressing files remotely too, we would instead need to selectively redefine behaviour for local tar usage vs remote usage, e.g. by adding a :copy_local_tar_options variable, similar to :copy_local_tar