Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions .github/workflows/windows-consumer-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading