mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-25 17:24:00 -04:00
13 lines
290 B
Go
13 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
|
||
|
|
}
|