electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

hdiutil failures block building macOS versions

Open Nokel81 opened this issue 1 year ago • 1 comments

  • Electron-Builder Version: 23.3.3
  • Node Version: 16.11.59
  • Electron Version: 19.0.16
  • Electron Type (current, beta, nightly): current
  • Target: macOS 11

Similar to https://github.com/electron-userland/electron-builder/issues/4606

While running on github actions we very often run into the following error:

Exit code: 16. Command failed: hdiutil detach -force /dev/disk2
hdiutil: couldn't eject "disk2" - Resource busy

hdiutil: couldn't eject "disk2" - Resource busy
  failedTask=build stackTrace=Error: Exit code: 16. Command failed: hdiutil detach -force /dev/disk2
hdiutil: couldn't eject "disk2" - Resource busy

If I rerun it then it generally passes but that wastes times.

Nokel81 avatar Sep 14 '22 14:09 Nokel81

I don't think we have a way for determining if the resource is still busy, we simply can't move forward with the rest of the build process. We already retry ejecting the dmg 3 times.

mmaietta avatar Sep 16 '22 16:09 mmaietta