Repository navigation
v0.7.1
Critical fix: upgrade if you run more than one instance of the same repo. A git worktree prune or git gc inside one sandbox could delete git's records of every other instance's worktree, leaving them with fatal: not a git repository. devsandbox now locks the worktrees it creates. After upgrading, run devsandbox start once on each existing instance to lock its worktree (safe on a running one), and devsandbox rebuild it to also get the git gc guard. This release also adds local-folder features and fixes a few host-daemon start and shutdown issues.
devsandbox start <instance>Added
- Local-folder features. A
featureskey starting with./,../or/is a feature folder (devcontainer-feature.json+install.sh) resolved against the config dir, so a config can ship its own feature without publishing it to a registry. Options,containerEnv,installsAfter,mounts,privilegedandentrypointwork as for OCI features. Editing a file in the folder marks the sandbox's instances as drifted, sodevsandbox rebuildpicks the change up, anddevsandbox lswarns when the folder or itsdevcontainer-feature.jsonis missing.
[template.base.features."./features/toolkit"]
ripgrep = trueFixed
- Critical:
git worktree pruneinside a sandbox no longer breaks the other instances' worktrees. A container sees the repo's worktree records but not the other checkouts, so a prune (orgit gc) there deleted their records and left each one withfatal: not a git repository. devsandbox now locks the worktrees it creates, so prune and gc skip them; existing instances get locked on their nextstart. An instance whose record was already pruned gets a warning onstartinstead; git won't work in it until the record is restored. Containers also getgc.worktreePruneExpire=never(after a rebuild for existing ones), sogit gcleaves worktrees you made yourself alone too. Details:docs/worktree-locking.md. devsandbox rebuildstarts the host daemon, likerunandstart. A rebuilt dispatcher orinbox = trueinstance with no dashboard open and no daemon running had no host, so itsdevsbdcontrol commands exited75until some other command started one.- An upgrade or
devsandbox serve shutdownno longer brings back the old daemon. A dispatcher's child op still running while the daemon shut down could start a fresh daemon from the old binary, which then kept running instead of the new one (or undid the shutdown). - The "no host connected" error says how to get one. Control commands that exit
75now suggest running anydevsandboxcommand (ordevsandbox serve install) instead of opening the dashboard, which no longer serves them.
Commits
- 6a9f65a chore(site): add pnpm shot to screenshot built pages
- 029b3ac fix(site): tidy the architecture diagrams' joins and index list
- 23ba27b docs(changelog): note the serve drain race and no-host hint fixes
- 5f1d597 docs(changelog): note that rebuild now starts the host daemon
- 8c2b83e docs(devsbd): point the no-host hint at the daemon, not the dashboard
- 2977de1 fix(serve): never lazy-start a daemon from a dispatcher child op
- 138d46b fix(rebuild): start the host daemon after a rebuild
- 7ae7921 fix(worktree): lock sandbox worktrees so a prune inside a container can't break the others
- 454e99e docs(site): add unlinked /architecture pages for contributors
- 002dda3 docs(features): document local-folder features
- fc97df0 feat(features): support local-folder features