From cc34aca2a0c6dd174a7e7b11077bf1b62bcc7582 Mon Sep 17 00:00:00 2001 From: "Alessandro (Ale) Segala" <43508+ItalyPaleAle@users.noreply.github.com> Date: Sat, 20 Sep 2025 12:32:00 -0700 Subject: [PATCH] fix: do not treat certain failures in app images bootstrap as fatal (#966) --- .../internal/bootstrap/application_images_bootstrap.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/internal/bootstrap/application_images_bootstrap.go b/backend/internal/bootstrap/application_images_bootstrap.go index 19c9a46c..b0c0c0af 100644 --- a/backend/internal/bootstrap/application_images_bootstrap.go +++ b/backend/internal/bootstrap/application_images_bootstrap.go @@ -42,9 +42,15 @@ func initApplicationImages() error { name := f.Name() destFilePath := path.Join(dirPath, name) + // Skip directories + if f.IsDir() { + continue + } + h, err := utils.CreateSha256FileHash(destFilePath) 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