Skip to content

Commit

Permalink
Revert "Use pax tar format (GoogleContainerTools#1809)"
Browse files Browse the repository at this point in the history
This reverts commit ee95be1.
Due issues with reproducible builds: GoogleContainerTools#2005
  • Loading branch information
angusjfw committed Dec 14, 2022
1 parent cf9a334 commit d5363c1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions pkg/util/tar_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ 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 {
Expand Down
3 changes: 0 additions & 3 deletions pkg/util/tar_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@ limitations under the License.
package util

import (
"archive/tar"
"bytes"
"compress/gzip"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"testing"
"time"

"github.com/GoogleContainerTools/kaniko/testutil"
)
Expand Down

0 comments on commit d5363c1

Please sign in to comment.