diff --git a/.github/workflows/windows-consumer-install.yaml b/.github/workflows/windows-consumer-install.yaml index a570f1b3..dd532d21 100644 --- a/.github/workflows/windows-consumer-install.yaml +++ b/.github/workflows/windows-consumer-install.yaml @@ -84,17 +84,12 @@ jobs: throw 'Packed node-libcurl tarball was not found' } - # 'nested-' * 4 puts the consumer at ~110 chars before node_modules, - # which mirrors what real-world pnpm monorepos hit (workspace + - # a couple of nested package depths). The previous 'nested-' * 12 - # forced moduleRoot to ~256 chars, leaving no headroom under - # MAX_PATH for MSVC's c1xx.exe — that compiler front-end doesn't - # carry the long-path app manifest, so the registry opt-in does - # nothing for it. With *4 we have ~135 chars of slack inside the - # 260-char ceiling for MSBuild's intermediate/log files. - $consumerRoot = Join-Path $env:RUNNER_TEMP ( - 'node-libcurl-consumer-' + ('nested-' * 4) - ) + # Keep this path short. The scoped name puts @brightsec in the path + # twice and makes pnpm hash the .pnpm entry, which adds ~28 chars + # over upstream's unscoped layout. MSBuild's CL task (VS 18.11+) + # throws PathTooLongException once the package root reaches ~178 + # chars, and the long-path registry opt-in does not help it. + $consumerRoot = Join-Path $env:RUNNER_TEMP 'node-libcurl-consumer' New-Item -ItemType Directory -Force -Path $consumerRoot Set-Location $consumerRoot