Remove buildstamp from build hash. Version and commit should be enough (#93658)

Remove buildstamp from build hash, version and commit should be enough
This commit is contained in:
Oscar Kilhed 2024-09-24 16:10:29 +01:00 committed by GitHub
parent ae5a7a53a9
commit 9adb7b03a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,6 @@ func (hs *HTTPServer) GetFrontendAssets(c *contextmodel.ReqContext) {
hash.Reset()
_, _ = hash.Write([]byte(setting.BuildVersion))
_, _ = hash.Write([]byte(setting.BuildCommit))
_, _ = hash.Write([]byte(fmt.Sprintf("%d", setting.BuildStamp)))
keys["version"] = fmt.Sprintf("%x", hash.Sum(nil))
// Plugin configs