fix: create host path symlinks in container so git worktree absolute paths resolve correctly
This commit is contained in:
parent
fd5a6f8ed7
commit
0d059b8940
|
|
@ -48,6 +48,9 @@ export async function ensure(log?: (msg: string) => void): Promise<void> {
|
|||
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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user