mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-09-30 17:30:51 +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
|
||||
hdr.Uname = ""
|
||||
hdr.Gname = ""
|
||||
// use PAX format to preserve accurate mtime (match Docker behavior)
|
||||
hdr.Format = tar.FormatPAX
|
||||
|
||||
hardlink, linkDst := t.checkHardlink(p, i)
|
||||
if hardlink {
|
||||
|
||||
Reference in New Issue
Block a user