From 3cbdfef446036ba6323d7e082e0d13b2c096e665 Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Tue, 23 Feb 2021 21:35:56 +0100 Subject: [PATCH] fix(build-stage): don't throw when setting utime on missing file --- core/src/build-staging/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/build-staging/helpers.ts b/core/src/build-staging/helpers.ts index 56f160bf9a..1b8f5f3049 100644 --- a/core/src/build-staging/helpers.ts +++ b/core/src/build-staging/helpers.ts @@ -135,7 +135,7 @@ function doClone(params: CopyParams) { } // Set the mtime on the cloned file to the same as the source file utimes(to, new Date(), sourceStats.mtimeMs / 1000, (utimesErr) => { - if (utimesErr) { + if (utimesErr && utimesErr.code !== "ENOENT") { return done(utimesErr) } done(null, { skipped: false })