diff options
author | Alan Pearce | 2024-04-19 07:30:27 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-19 07:30:27 +0200 |
commit | 731d1c63dca1c8bf6d99e9c0f316f59595861ac8 (patch) | |
tree | b9d63dacaf96c8ae8d3a6f4c112e375471266045 /cmd/build | |
parent | 604e9342d92742022943feba62ce812d6ad1dc8f (diff) | |
download | website-731d1c63dca1c8bf6d99e9c0f316f59595861ac8.tar.lz website-731d1c63dca1c8bf6d99e9c0f316f59595861ac8.tar.zst website-731d1c63dca1c8bf6d99e9c0f316f59595861ac8.zip |
preserve file times when copying from static/
Diffstat (limited to 'cmd/build')
-rw-r--r-- | cmd/build/build.go | 4 |
1 files changed, 3 insertions, 1 deletions
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)) } |