Skip to content

fix: chown workspace parents on create for bind-mode sibling clone - #33

Merged
wcgomes merged 1 commit into
mainfrom
patch/workspace-parents-writable
Aug 18, 2026
Merged

fix: chown workspace parents on create for bind-mode sibling clone#33
wcgomes merged 1 commit into
mainfrom
patch/workspace-parents-writable

Conversation

@wcgomes

@wcgomes wcgomes commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Problem

Bind-mode postCreateCommand sibling clone failed with Permission denied when the workspace root /workspaces is root-owned — the sibling clone cannot create its directory under a non-writable parent.

Fix

Parents-only rootfs fix-up on the create paths of up, clone, and rebuild:

  • WorkspaceOwnership gains a parentsOnly scope — chowns only the parent directories of the workspace path, never the bind target itself
  • No-op when the owner is root or unset
  • clone is covered by the existing rootfs walk

Spec

  • specs/changes/workspace-parents-writable/ (proposal, spec, tasks)

Tests

  • swift build clean
  • 857 passed / 0 failed / 15 skipped on Linux (integration tests skip by design)

Wiki

  • wiki/domain/devcontainer-apple-gaps.md
  • wiki/conventions/cli-runtime-boundary.md

@wcgomes
wcgomes merged commit db63bd7 into main Aug 18, 2026
1 check passed
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