github.com/aclaygray/packer@v1.3.2/post-processor/vagrant/tar_fix_go110.go (about) 1 // +build go1.10 2 3 package vagrant 4 5 import "archive/tar" 6 7 func setHeaderFormat(header *tar.Header) { 8 // We have to set the Format explicitly because of a bug in 9 // libarchive. This affects eg. the tar in macOS listing huge 10 // files with zero byte length. 11 header.Format = tar.FormatGNU 12 }