Skip to content

fix: set explicit cwd on all spawn calls to prevent posix_spawn ENOENT#7

Merged
henrikje merged 1 commit intomainfrom
bug-posix-spawn-git
Feb 16, 2026
Merged

fix: set explicit cwd on all spawn calls to prevent posix_spawn ENOENT#7
henrikje merged 1 commit intomainfrom
bug-posix-spawn-git

Conversation

@henrikje
Copy link
Copy Markdown
Owner

When arb remove runs from inside the workspace being removed, rmSync deletes the user's cwd and subsequent Bun.spawn/Bun.$ calls crash with ENOENT because the OS validates the inherited cwd before exec. Adding an explicit cwd to every spawn site ensures a valid directory is always used.

@henrikje henrikje force-pushed the bug-posix-spawn-git branch from 787a0a6 to e2e3be1 Compare February 16, 2026 11:47
When `arb remove` runs from inside the workspace being removed, rmSync
deletes the user's cwd and subsequent Bun.spawn/Bun.$ calls crash with
ENOENT because the OS validates the inherited cwd before exec. Adding an
explicit cwd to every spawn site ensures a valid directory is always used.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@henrikje henrikje force-pushed the bug-posix-spawn-git branch from e2e3be1 to 5a0ffec Compare February 16, 2026 11:51
@henrikje henrikje enabled auto-merge (squash) February 16, 2026 11:51
@henrikje henrikje disabled auto-merge February 16, 2026 11:55
@henrikje henrikje merged commit daf134a into main Feb 16, 2026
1 check failed
@henrikje henrikje deleted the bug-posix-spawn-git branch February 16, 2026 11:56
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