Skip to content

Commit

Permalink
fix(core): reduce likelihood of ENAMETOOLONG error on windows (#13850)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5eabd6c)
  • Loading branch information
AgentEnder authored and FrozenPandaz committed Dec 19, 2022
1 parent 2c5cb50 commit 706ecd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/hasher/git-hasher.ts
Expand Up @@ -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;
Expand Down

0 comments on commit 706ecd5

Please sign in to comment.