mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-23 18:04:11 -05:00
12 lines
290 B
Go
12 lines
290 B
Go
// +build go1.10
|
|
|
|
package vagrant
|
|
|
|
import "archive/tar"
|
|
|
|
func setHeaderFormat(header *tar.Header) {
|
|
// We have to set the Format explicitly because of a bug in
|
|
// libarchive. This affects eg. the tar in macOS listing huge
|
|
// files with zero byte length.
|
|
header.Format = tar.FormatGNU
|
|
}
|