From 0d059b8940c6e78aa6170fba0c9b143c672a8099 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Thu, 19 Feb 2026 16:03:07 -0800 Subject: [PATCH] fix: create host path symlinks in container so git worktree absolute paths resolve correctly --- src/vm.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vm.ts b/src/vm.ts index 246e5b4..3dd058f 100644 --- a/src/vm.ts +++ b/src/vm.ts @@ -48,6 +48,9 @@ export async function ensure(log?: (msg: string) => void): Promise { log?.("Installing packages") await $`container exec ${CONTAINER_NAME} bash -c ${"apt update && apt install -y curl git neofetch fish"}`.quiet() + // Create symlinks so git worktree absolute paths from the host resolve inside the container + await $`container exec ${CONTAINER_NAME} bash -c ${`mkdir -p '${home}' && ln -s /host '${home}/dev' && ln -s /sandlot '${home}/.sandlot'`}`.quiet() + // Install Claude Code and configure (as ubuntu user) log?.("Installing Claude Code") await $`container exec --user ${USER} ${CONTAINER_NAME} bash -c ${"curl -fsSL https://claude.ai/install.sh | bash"}`.quiet()