From 67f034f9496c028fb3e05b59f83c759b264ef8b3 Mon Sep 17 00:00:00 2001 From: Yan-Ke Guo Date: Fri, 10 Oct 2025 13:49:45 +0800 Subject: [PATCH] fix: handle non-existent in-progress files during deletion, preventing exceptions --- push/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/push/index.ts b/push/index.ts index 9b4cc66..38679fd 100644 --- a/push/index.ts +++ b/push/index.ts @@ -131,7 +131,7 @@ for (const layer of manifest.Layers) { } const inprogressPath = path.join(cacheFolder, layerName + "-in-progress"); - await rm(inprogressPath, { recursive: true }); + await rm(inprogressPath, { force: true, recursive: true }); const hasher = new Bun.CryptoHasher("sha256"); const cacheWriter = file(inprogressPath).writer();