Repository navigation
Add checkout_store to share git checkouts across projects - #376
Open
aottavianoTT wants to merge 2 commits into
Open
aottavianoTT wants to merge 2 commits into
aottavianoTT wants to merge 2 commits into
Conversation
aottavianoTT
marked this pull request as ready for review
November 3, 2026 07:24
Author
|
@micprog this addresses one pain point from working on large projects at TT where checkout time matters. Please have a look |
This branch has not been deployed
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.
db_dirlets projects share the bare git repositories, but every project still writes its own working tree for each dependency. With large dependency sets and many short-lived workspaces (CI jobs, fresh clones), writing those trees dominatesbender checkout.This adds an optional
checkout_storeconfig field. When set, a git dependency is checked out at<checkout_store>/<name>-<hash>/<revision>/, keyed by its URL and locked revision, and every project locked to that revision uses that checkout. A project on another revision gets its own entry, so no project changes a checkout another one uses.db_diris set, the bare repositories live under<checkout_store>/git/db/, so the shared checkouts'--sharedalternates never point into one project's.bender.workspace.checkout_dirkeep their own checkouts;bender clonestill copies into a private working copy;bender cleanleaves the store alone.Tested (without the
slangfeature):cargo fmt --check,cargo clippy --all-targets -D warnings,cargo test, the CLI regression againstmaster(57 passed) andtests/iss*.sh. By hand: two projects on one lock (the second writes no files), a third on another revision, four concurrent checkouts into an empty store, andcheckout_dir,clone,cleanandupdate.