-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
electron-builder fails when list of node_modules files is too big to pass in a glob #8705
Comments
#8645 can fix this issue. It only add the node_modules/xxx into unpackedPaths intead of all sub directories in node_modules/xxx. |
@abram This #8645 has been merged into v26.0.0-alpha.7. Can you help try it? |
Thanks for your work @beyondkmp! Unfortunately, after upgrading to v26.0.0-alpha.7, I still get the "pattern is too long" error when running I created a demo repo here: https://github.com/abram/electron-builder-pattern-too-long-error-demo Can you try checking that out and see if you're able to reproduce the problem? |
Thanks so much @beyondkmp! I can confirm that your fix is working for me. |
This recent change causes electron-builder to fail in my project:
electron-builder/packages/app-builder-lib/src/asar/asarUtil.ts
Line 49 in 6a6bed4
It attempts to take a potentially large file list and put it into a glob pattern string. This causes an error due to exceeding a hard coded limit in minimatch:
You can see the limit code here:
https://github.com/isaacs/minimatch/blob/main/src/assert-valid-pattern.ts#L1
I'm not familiar with the asar module, but there must be a better way to pass a file list than using a giant glob.
The text was updated successfully, but these errors were encountered: