github.com/StackPointCloud/packer@v0.10.2-0.20180716202532-b28098e0f79b/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 }