From 731d1c63dca1c8bf6d99e9c0f316f59595861ac8 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 19 Apr 2024 07:30:27 +0200 Subject: preserve file times when copying from static/ --- cmd/build/build.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/build/build.go b/cmd/build/build.go index 5007ead..8a8cd68 100644 --- a/cmd/build/build.go +++ b/cmd/build/build.go @@ -534,7 +534,9 @@ func main() { if err != nil { log.Panic(errors.Errorf("could not remove public directory: %v", err)) } - err = cp.Copy("static", "public", cp.Options{}) + err = cp.Copy("static", "public", cp.Options{ + PreserveTimes: true, + }) if err != nil { log.Panic(errors.Errorf("could not copy static files: %v", err)) } -- cgit 1.4.1