Skip to content

Retry the DMG detach while Finder still holds the volume - #20

Merged
afrojun merged 1 commit into
mainfrom
fix/dmg-detach-retry
Nov 5, 2026
Merged

afrojun merged 1 commit into
mainfrom
fix/dmg-detach-retry

Conversation

@afrojun

@afrojun afrojun commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Summary

 package-dmg.sh
   osascript … (Finder lays out the DMG window)
-  hdiutil detach "$mount"
+  retry hdiutil detach "$mount" up to 10 times, 1 s apart
+  then hdiutil detach "$mount" -force
   hdiutil convert …

Finder can keep the volume busy for a moment after laying out the window, so the detach failed with Resource busy (exit 16).

Evidence

Merge Danger

Door: two-way

Blast Radius: packaging

Affects CI and the release workflow, which both call package-dmg.sh.

🤖 Generated with Claude Code

After package-dmg.sh has Finder lay out the DMG window, Finder can keep the
volume busy for a moment, and hdiutil detach fails with "Resource busy". It
failed CI three times in a row on one pull request and can fail a release
the same way. The detach now retries for up to ten seconds, then forces it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@afrojun
afrojun merged commit b089783 into main Nov 5, 2026
2 checks passed
@afrojun
afrojun deleted the fix/dmg-detach-retry branch November 5, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant