all repos — homestead @ ef481df4a4cbe2026db7e799549cdceafbc81591

Code for my website

preserve file times when copying from static/

Alan Pearce
commit

ef481df4a4cbe2026db7e799549cdceafbc81591

parent

f9cae573ce3f9668a97baf0a0f0400cde606af19

1 file changed, 3 insertions(+), 1 deletion(-)

jump to
M cmd/build/build.gocmd/build/build.go
@@ -534,7 +534,9 @@ err = os.RemoveAll("public")
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)) }