Add copy-on-write syncDirs bootstrap#71
Open
sjquant wants to merge 19 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
New worktrees should become usable quickly while keeping dependency and build state correct for the new checkout. A CoW seed is only an optimization; the detected tool still performs authoritative repair after synced local files are available.
Changes
syncDirsas an advanced, generic relative-directory CoW feature with APFS clonefile or mandatory Linux reflinks, never ordinary-copy fallback or package-manager behavior.dependencyBootstrapacross global, per-repo global, and local config with explicit values taking precedence over prompting.gji newandgji pr: reuse and repair, install fresh, or skip. Persist the choice through the existing local/globalinstallSaveTargetbehavior; JSON, headless, and dry-run modes never prompt and retainoffwhen unset.vendor/bundleand receives an explicit local bundle path.CoW seed → syncFiles → dependency/build repair or install → after-create, and stop setup before repair, prompts, or hooks whensyncFilesfails.after-createas the project-specific escape hatch for generation, local services, and environment commands.Validation:
pnpm test(39 files, 692 tests),pnpm typecheck,pnpm build,pnpm docs:build,pnpm generate-man, and Biome checks all pass.