GitHub Actions: Error: EEXIST: file already exists, link
See original GitHub issue22.7.0
- Electron Version: 8.3.1 and 9.0.2
- Electron Type (current, beta, nightly): current
- Target: MAS
In order to get signing done correctly and accepted by Apple, we had to make this configuration:
mas:
type: distribution
hardenedRuntime: false
provisioningProfile: ./resources/embedded.provisionprofile
entitlements: ./resources/entitlements.mas.plist
entitlementsInherit: ./resources/entitlements.mas.inherit.plist
asarUnpack:
- '**/*.node'
Note the asarUnpack. Local building is fine, but when done in a GitHub Action:
⨯ Cannot cleanup:
Error #1 --------------------------------------------------------------------------------
Error: EEXIST: file already exists, link '/Users/runner/runners/2.263.0/work/privicypal/privicypal/electron/node_modules/leveldown/prebuilds/win32-x64/node.napi.node' -> '/Users/runner/runners/2.263.0/work/privicypal/privicypal/electron/release/mas/Electron.app/Contents/Resources/app.asar.unpacked/node_modules/leveldown/prebuilds/win32-x64/node.napi.node'
Error #2 --------------------------------------------------------------------------------
Error: EEXIST: file already exists, link '/Users/runner/runners/2.263.0/work/privicypal/privicypal/electron/node_modules/leveldown/prebuilds/linux-x64/node.napi.musl.node' -> '/Users/runner/runners/2.263.0/work/privicypal/privicypal/electron/release/mas/Electron.app/Contents/Resources/app.asar.unpacked/node_modules/leveldown/prebuilds/linux-x64/node.napi.musl.node'
Error #3 --------------------------------------------------------------------------------
Error: EEXIST: file already exists, link '/Users/runner/runners/2.263.0/work/privicypal/privicypal/electron/node_modules/leveldown/prebuilds/linux-arm64/node.napi.armv8.node' -> '/Users/runner/runners/2.263.0/work/privicypal/privicypal/electron/release/mas/Electron.app/Contents/Resources/app.asar.unpacked/node_modules/leveldown/prebuilds/linux-arm64/node.napi.armv8.node' stackTrace=
Error: Cannot cleanup:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
Build failing with EEXIST: file already exists #3179 - GitHub
I'm having the same issue as was brought up here #3039 , The MacOS build fails with EEXIST: file already exists, below is...
Read more >Build error "EEXIST: file already exists" caused by app-builder ...
Abstract. Met the same build error at Github actions like #3039 / #3179 , after some console.log debugging and I found that the...
Read more >EEXIST: file already exists · Issue #129 · crazy-max/ghaction ...
When I am deploying a directory I am getting this error: EEXIST: file already exists, mkdir '/tmp/github-pages-3fqEIE/lib/absinthe/priv'.
Read more >EEXIST: file already exists, symlink · Issue #3308 - GitHub
It should fail because you have two dependencies with the same name: file and File. But it should fail with a meaningful error...
Read more >Publish fails with EEXIST: file already exists, symlink #4559
Version: 21.2.0 Target: 4.2.0 When running, npm run publish, I get the following output: vladh sundae my-app:release $ npm run publish ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
still relevant
this is still relevant!