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
  • Loading branch information
AgentEnder committed Dec 15, 2022
1 parent 565652f commit 5eabd6c
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

1 comment on commit 5eabd6c

@vercel
Copy link

@vercel vercel bot commented on 5eabd6c Dec 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app

Please sign in to comment.