From 917c9e1b3fc975984b170f415d66310e367fba69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20Pe=C3=B1aloza?= Date: Tue, 16 Apr 2024 10:17:26 -0400 Subject: [PATCH] Create intermediate directories MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andres PeƱaloza --- src/extract-cache.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/extract-cache.ts b/src/extract-cache.ts index 1b1f254..2681547 100644 --- a/src/extract-cache.ts +++ b/src/extract-cache.ts @@ -6,6 +6,8 @@ import { run, runPiped } from './run.js'; async function extractCache(cacheSource: string, cacheOptions: CacheOptions, scratchDir: string) { // Prepare Timestamp for Layer Cache Busting const date = new Date().toISOString(); + + await fs.mkdir(scratchDir, { recursive: true }); await fs.writeFile(path.join(scratchDir, 'buildstamp'), date); // Prepare Dancefile to Access Caches