mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 11:22:35 +02:00
Use PAX tar format
This commit is contained in:
@@ -92,6 +92,8 @@ func (t *Tar) AddFileToTar(p string) error {
|
|||||||
// this makes this layer unnecessarily differ from a cached layer which does contain this information
|
// this makes this layer unnecessarily differ from a cached layer which does contain this information
|
||||||
hdr.Uname = ""
|
hdr.Uname = ""
|
||||||
hdr.Gname = ""
|
hdr.Gname = ""
|
||||||
|
// use PAX format to preserve accurate mtime (match Docker behavior)
|
||||||
|
hdr.Format = tar.FormatPAX
|
||||||
|
|
||||||
hardlink, linkDst := t.checkHardlink(p, i)
|
hardlink, linkDst := t.checkHardlink(p, i)
|
||||||
if hardlink {
|
if hardlink {
|
||||||
|
|||||||
Reference in New Issue
Block a user