mirror of https://github.com/hashicorp/packer
parent
71dcc0f212
commit
742e366367
@ -0,0 +1,9 @@
|
||||
// +build !go1.10
|
||||
|
||||
package vagrant
|
||||
|
||||
import "archive/tar"
|
||||
|
||||
func setHeaderFormat(header *tar.Header) {
|
||||
// no-op
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
// +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
|
||||
}
|
||||
Loading…
Reference in new issue