mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Don't store assets modified time into generated files (#18193)
This commit is contained in:
@@ -7,4 +7,4 @@
|
||||
|
||||
package public
|
||||
|
||||
//go:generate go run -mod=vendor ../../build/generate-bindata.go ../../public public bindata.go
|
||||
//go:generate go run -mod=vendor ../../build/generate-bindata.go ../../public public bindata.go true
|
||||
|
@@ -18,8 +18,14 @@ import (
|
||||
"time"
|
||||
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
"code.gitea.io/gitea/modules/timeutil"
|
||||
)
|
||||
|
||||
// GlobalModTime provide a gloabl mod time for embedded asset files
|
||||
func GlobalModTime(filename string) time.Time {
|
||||
return timeutil.GetExecutableModTime()
|
||||
}
|
||||
|
||||
func fileSystem(dir string) http.FileSystem {
|
||||
return Assets
|
||||
}
|
||||
|
Reference in New Issue
Block a user