-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Builder in 25.0.0 finds files outside project and throws error #8345
Comments
Can you provide a minimal reproducible demo? |
I can't get it to happen in a small example. You can see the full project here: https://github.com/ulixee/platform/tree/main/desktop The monorepo has a weird build process, which is probably why something is happening here that is out of the ordinary. We compile typescript into an entirely different directory and then builds node modules in that directory. The desktop app is a submodule with a two app structure. So we have to actually copy over the project files so that the sub dependencies are found and packaged into the app. I was trying out the new version because somehow only half of the native modules are added to asar unpacked. The latest version has the same problem - even though electron rebuilder shows them being rebuilt. |
same too... |
@blakebyrnes @jhlee8804 Could you enable DEBUG mode to get more info?
|
Might be worth testing and reporting logs with |
@beyondkmp Sorry, I totally restructured my project to workaround this bug and no longer running into it after the restructure. However, I think it was possibly caused by workspaces I had linked to that were in other directories. Maybe something with how electron builder is following symlinks and determining when they're considered "out of the workspace"? |
So I'm seeing this with Beekeeper Studio. I also think it has something to do with workspaces. I'm seeing electron builder resolve a package from the wrong location: Output from electron-builder:
Where it SHOULD get it from:
Replication Steps with open source projects
@beyondkmp let me know if this helps enough |
@rathboma I've tested v25.1.8, and it's been fixed. You can update your electron-builder version. |
@blakebyrnes Thanks for your work. I tested with v25.1.8, but the issue still persists.
|
@jhlee8804 Is client/natives npm node module? Could you set debug mode to get more info or could you provide a minimal reproducible demo code? |
@beyondkmp Please see the attached file. build_win.log |
@jhlee8804 Thanks for the detailed debug info. Your issue is the same as this one(#8576) . Could you test the v26.0.0-alpha.4 version again? |
@beyondkmp Another error occurs in v26.0.0-alpha.4 versions. build_win2.log |
@mmaietta It appears to be an issue caused by electron/asar integration. copy file config
error info
electron-builder/packages/app-builder-lib/src/asar/asarUtil.ts Lines 103 to 111 in f84a083
It shouldn't consider everything outside of appDir as problematic. For example, in the issue above, it's copying a pdfjs folder from outside the appDir, and within pdfjs there are some symlink files that point to files within the pdfjs folder itself. patch
|
25.0.0
20.11.0
31.2.1 (current)
All, but testing on mac
Building in 24.x didn't have this problem. I tried to upgrade and have an issue where the filter is throwing an error about files it finds even though they're outside the directory where the build is happening (and also have all the dependencies set to no-hoist and that also didn't work)
Here's the error stack for one iteration (I've tried a number of ways to do this. This stack is before I did nohoist. The question is: How can I set a relative directory for the file filter not to go above?
The text was updated successfully, but these errors were encountered: