From 8e3cafae796bf40c9bcbdfb96fe11cb41091c18f Mon Sep 17 00:00:00 2001 From: Harald Sitter Date: Tue, 26 Aug 2025 07:35:39 +0200 Subject: [PATCH] mtimer: start the search for a dir time with unix(0) if the dir is newer than the files then we still want to force it to a consistent value of the files most notably this should prevent a whole host of dirs from having an mtime that is the package unpack time, which is obviously changing between builds --- mtimer/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtimer/main.go b/mtimer/main.go index 0643ec4..5f221d7 100644 --- a/mtimer/main.go +++ b/mtimer/main.go @@ -107,7 +107,7 @@ func updateDir(dir DirInfo) { log.Fatal(err) } - latest := dir.info.ModTime() + latest := time.Unix(0, 0) for _, entry := range entries { if entry.Type()&os.ModeSymlink != 0 { continue