Skip to content

Commit 622c2ea

Browse files
MaxKlessFrozenPandaz
authored andcommitted
fix(core): lower socket path by 10 chars to reduce chances of too-long paths (#28920)
## Current Behavior Socket paths have quite a short allowed length. It's easy to hit the maximum. ## Expected Behavior We should exceed the maximum as rarely as possible. By lowering the workspacePath hash portion, we reduce the chances of exceeding the path. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #27725 (cherry picked from commit be8029d)
1 parent d59d84c commit 622c2ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nx/src/daemon/tmp-dir.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function isDaemonDisabled() {
4949
function socketDirName() {
5050
const hasher = createHash('sha256');
5151
hasher.update(workspaceRoot.toLowerCase());
52-
const unique = hasher.digest('hex').substring(0, 20);
52+
const unique = hasher.digest('hex').substring(0, 10);
5353
return join(tmpdir, unique);
5454
}
5555

0 commit comments

Comments
 (0)