fix: do not treat certain failures in app images bootstrap as fatal (#966)

This commit is contained in:
Alessandro (Ale) Segala
2025-09-20 12:32:00 -07:00
committed by GitHub
parent fde4e9b38a
commit cc34aca2a0

View File

@@ -42,9 +42,15 @@ func initApplicationImages() error {
name := f.Name() name := f.Name()
destFilePath := path.Join(dirPath, name) destFilePath := path.Join(dirPath, name)
// Skip directories
if f.IsDir() {
continue
}
h, err := utils.CreateSha256FileHash(destFilePath) h, err := utils.CreateSha256FileHash(destFilePath)
if err != nil { if err != nil {
return fmt.Errorf("failed to get hash for file '%s': %w", name, err) slog.Warn("Failed to get hash for file", slog.String("name", name), slog.Any("error", err))
continue
} }
// Check if the file is a legacy one - if so, delete it // Check if the file is a legacy one - if so, delete it