Windows linked worktree: pre-push check stalls with pinned Turbo 2.10.2
Summary
On Windows, the OpenCode pre-push check can stall during Turbo hashing when run from a linked Git worktree. Official dev at 56dc95bff5f002321a12de5bbbe2783cd0c87e2a pins Turbo 2.10.2 and runs bun run check from .husky/pre-push. The typecheck stage invokes Turbo.
Reproduction
From a linked worktree checked out at that official commit, install with bun install --frozen-lockfile. Run the following from the worktree root in PowerShell (this is a dry run and does not push anything):
$env:GIT_DIR = git rev-parse --absolute-git-dir
Remove-Item Env:GIT_WORK_TREE -ErrorAction SilentlyContinue
bunx turbo typecheck --dry=json --concurrency=3
On the same Windows x64 checkout with Bun 1.4.4, Turbo 2.10.2 completed in 5.9 seconds without the explicit GIT_DIR and was still running after 30 seconds with the hook-style environment. The latter command was terminated after the timeout. In the original pre-push hang, Turbo's child Git status commands traversed dependency directories instead of using the linked worktree root. This affects contributors pushing from a linked worktree.
Expected: the same task graph completes with the Git hook environment. Related report: vercel/turborepo#15081. The fork is testing a pinned Turbo upgrade in OpenCode.My#14.
As a comparison on the same unmodified official checkout, Turbo 2.11.11 completed the same dry run with the hook environment in 2.2 seconds. The test used its native executable directly with --skip-infer to prevent Turbo selecting the workspace's pinned version.