From 892c98fe9b07cd8b1a77ee6a1bbd2da4088c0946 Mon Sep 17 00:00:00 2001 From: MaxKless <34165455+MaxKless@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:59:16 +0200 Subject: [PATCH] fix(core): ignore errors from cleanupNativeFileCache (revert to previous behaviour) (#26806) (cherry picked from commit e09bad9363571e2a51c4779caea158d4eeca11d8) --- packages/nx/src/command-line/reset/reset.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nx/src/command-line/reset/reset.ts b/packages/nx/src/command-line/reset/reset.ts index 2f2d23a67956b..61dc978ad7651 100644 --- a/packages/nx/src/command-line/reset/reset.ts +++ b/packages/nx/src/command-line/reset/reset.ts @@ -54,7 +54,7 @@ export async function resetHandler(args: ResetCommandOptions) { try { await cleanupNativeFileCache(); } catch { - errors.push('Failed to clean up the native file cache.'); + // ignore, deleting the native file cache is not critical and can fail if another process is locking the file } try { await cleanupWorkspaceData();