Use PAX tar format
This commit is contained in:
		
							parent
							
								
									ee31dc93b6
								
							
						
					
					
						commit
						74100076c9
					
				|  | @ -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 { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue