Skip to content

ci: shorten the Windows consumer install path - #53

Merged
aborovsky merged 1 commit into
developfrom
ci/shorten-consumer-path
Nov 26, 2026
Merged

aborovsky merged 1 commit into
developfrom
ci/shorten-consumer-path

Conversation

@aborovsky

Copy link
Copy Markdown
Collaborator

Problem

Since 2026-11-12, windows-consumer-install / electron-source-install fails while compiling the addon:

error MSB6003: The specified task executable "CL.exe" could not be run.
System.IO.PathTooLongException: ... must be less than 260 characters

The code did not cause this. The same develop commit (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 on windows-2025-vs2026 with VS 18.12, because its package root is shorter:

package root in the consumer length
upstream ...\.pnpm\node-libcurl@file+..+node-libcurl-5.1.2.tgz\node_modules\node-libcurl 150
fork ...\.pnpm\@brightsec+node-libcurl@fil_<hash>\node_modules\@brightsec\node-libcurl 178

The scoped name puts @brightsec in the path twice. The .pnpm entry for the tarball is longer than pnpm's limit on Windows, so pnpm replaces it with a hashed name.

Change

Drop the 'nested-' * 4 suffix from the consumer directory. It is exactly 28 chars, so the package root is back at upstream's 150.

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.
@aborovsky
aborovsky merged commit fdc41e9 into develop Nov 26, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant