question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GitHub Actions: Error: EEXIST: file already exists, link

See original GitHub issue

22.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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

2reactions
stevenroussey-privicycommented, Oct 12, 2020

still relevant

0reactions
Lunarequestcommented, Nov 9, 2022

this is still relevant!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found