diff --git a/util/file.go b/util/file.go index 4e2502fa3d..662b77e8c2 100644 --- a/util/file.go +++ b/util/file.go @@ -1,6 +1,7 @@ package util import ( + "bytes" "encoding/gob" "io" "os" @@ -616,7 +617,7 @@ func CopyLockFile(sourceFolder string, destinationFolder string, logger *logrus. return errors.WithStackTrace(destReadErr) } - if string(sourceContents) == string(destinationContents) { + if bytes.Equal(sourceContents, destinationContents) { logger.Debugf("Source and destination lock file contents are the same. Not copying.") return nil }