mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-09-30 07:49:55 +02:00
chore: add debug line to RedoHasher (#2591)
This commit is contained in:
@@ -145,6 +145,12 @@ func RedoHasher() func(string) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
logrus.Debugf("Hash components for file: %s, mode: %s, mtime: %s, size: %s, user-id: %s, group-id: %s",
|
||||
p, []byte(fi.Mode().String()), []byte(fi.ModTime().String()),
|
||||
[]byte(strconv.FormatInt(fi.Size(), 16)), []byte(strconv.FormatUint(uint64(fi.Sys().(*syscall.Stat_t).Uid), 36)),
|
||||
[]byte(strconv.FormatUint(uint64(fi.Sys().(*syscall.Stat_t).Gid), 36)))
|
||||
|
||||
h.Write([]byte(fi.Mode().String()))
|
||||
h.Write([]byte(fi.ModTime().String()))
|
||||
h.Write([]byte(strconv.FormatInt(fi.Size(), 16)))
|
||||
|
||||
Reference in New Issue
Block a user