From 227ef6dae3f4a222aa902325c3a37fb2e2792011 Mon Sep 17 00:00:00 2001 From: AgentEnder Date: Thu, 15 Dec 2022 11:24:12 -0500 Subject: [PATCH] fix(core): reduce likelihood of ENAMETOOLONG error on windows --- packages/nx/src/hasher/git-hasher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nx/src/hasher/git-hasher.ts b/packages/nx/src/hasher/git-hasher.ts index e93ce44f15126..ff1c2d65320aa 100644 --- a/packages/nx/src/hasher/git-hasher.ts +++ b/packages/nx/src/hasher/git-hasher.ts @@ -18,7 +18,7 @@ export async function getGitHashForFiles( // the overall comand, rather than the number of individual // arguments. Since file paths are large and rather variable, // we use a smaller batchSize. - const batchSize = process.platform === 'win32' ? 500 : 4000; + const batchSize = process.platform === 'win32' ? 250 : 4000; for ( let startIndex = 0; startIndex < filesToHash.length;