You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
pattern is too long
at assertValidPattern (node_modules\minimatch\minimatch.js:280:11)
at minimatch (node_modules\minimatch\minimatch.js:116:3)
at isUnpackedDir (node_modules\@electron\asar\src\asar.ts:24:41)
at handleFile (node_modules\@electron\asar\src\asar.ts:148:17)
at next (node_modules\@electron\asar\src\asar.ts:185:5)
at AsarPackager.executeElectronAsar (node_modules\app-builder-lib\src\asar\asarUtil.ts:77:5)
at AsarPackager.pack (app-builder-lib\src\asar\asarUtil.ts:51:5)
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: