Repository navigation
ci: shorten the Windows consumer install path - #53
Merged
Merged
Conversation
Since VS 18.11 on windows-latest, electron-source-install fails with PathTooLongException in MSBuild's CL task. The scoped package name adds @BrightSec twice and makes pnpm hash the .pnpm entry, so the package root was 178 chars against 150 in upstream, where the same job passes on the same image. Dropping the 'nested-' * 4 suffix removes exactly those 28 chars.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Since 2026-11-12,
windows-consumer-install / electron-source-installfails while compiling the addon:The code did not cause this. The same
developcommit (2a18980) passed on 2026-10-06 with VS 18.10 and failed on 2026-11-12 with VS 18.11. Upstream JCMais/node-libcurl still passes the same job onwindows-2025-vs2026with VS 18.12, because its package root is shorter:...\.pnpm\node-libcurl@file+..+node-libcurl-5.1.2.tgz\node_modules\node-libcurl...\.pnpm\@brightsec+node-libcurl@fil_<hash>\node_modules\@brightsec\node-libcurlThe scoped name puts
@brightsecin the path twice. The.pnpmentry for the tarball is longer than pnpm's limit on Windows, so pnpm replaces it with a hashed name.Change
Drop the
'nested-' * 4suffix from the consumer directory. It is exactly 28 chars, so the package root is back at upstream's 150.