From 363e2298d8395a73d2e0410b58abe1b0dbe77119 Mon Sep 17 00:00:00 2001 From: Mike Sul Date: Mon, 2 Mar 2026 14:57:30 +0100 Subject: [PATCH] refact(pull): verify local blob integrity before pulling Verify hashes of app blobs already present in the local store before running an update/pull operation. This ensures we detect and re-download blobs that have become corrupted due to external factors (e.g., disk degradation). Checking only the blob size is not sufficient, as corrupted blobs may still match the expected size while having invalid content. Signed-off-by: Mike Sul --- cmd/composectl/cmd/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/composectl/cmd/pull.go b/cmd/composectl/cmd/pull.go index f3e4074..d5c89ca 100644 --- a/cmd/composectl/cmd/pull.go +++ b/cmd/composectl/cmd/pull.go @@ -45,7 +45,7 @@ func pullApps(cmd *cobra.Command, args []string) { DieNotNil(err) cr, ui, apps, err := checkApps(cmd.Context(), args, srcBlobProvider, *pullUsageWatermark, - *pullSrcStorePath, false, true) + *pullSrcStorePath, false, false) DieNotNil(err, "failed to check apps status") if len(cr.MissingBlobs) > 0 { ui.Print()