Skip to content

Commit 0251850

Browse files
aaron-prindlekylecarbs
authored andcommitted
chore: add debug line to RedoHasher (GoogleContainerTools#2591)
1 parent c53bd36 commit 0251850

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/util/util.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ func RedoHasher() func(string) (string, error) {
145145
if err != nil {
146146
return "", err
147147
}
148+
149+
logrus.Debugf("Hash components for file: %s, mode: %s, mtime: %s, size: %s, user-id: %s, group-id: %s",
150+
p, []byte(fi.Mode().String()), []byte(fi.ModTime().String()),
151+
[]byte(strconv.FormatInt(fi.Size(), 16)), []byte(strconv.FormatUint(uint64(fi.Sys().(*syscall.Stat_t).Uid), 36)),
152+
[]byte(strconv.FormatUint(uint64(fi.Sys().(*syscall.Stat_t).Gid), 36)))
153+
148154
h.Write([]byte(fi.Mode().String()))
149155
h.Write([]byte(fi.ModTime().String()))
150156
h.Write([]byte(strconv.FormatInt(fi.Size(), 16)))

0 commit comments

Comments
 (0)