You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(lockfiles): borrow tool versions from the user's own mise installs - #6
Local runs hard-link a tool version the user already has in their own mise (Node, Go, Bun, aube, Yarn, uv, Terraform) into the Count's tool store instead of downloading it.
The store's links are its own: pruning and clearing unproven installs remove only them, never the user's install.
Each version is borrowed at most once (patchula-seeded.json); a failure falls back to a normal mise install.
Python, Ruby, PHP and .NET are always installed fresh (their installs embed their path or share one root); a version that resolves outside its tool's directory is never copied.
Hard links need one filesystem; otherwise it falls back to downloading. The server never borrows.
Also quiets the "unproven tool install was not removed … is not installed" warning on a fresh store.
Measured on a fresh store with patchula tools install: 35 s with borrowing, against 68 s without, on a fast connection; every borrowed tool ran from the store.
We reviewed changes in e345380...0f10ea0 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.
Some issues found as part of this review are outside of the diff in this pull request and aren't shown in the inline review comments due to GitHub's API limitations. You can see those issues on the DeepSource dashboard.
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Borrowed version replaces an in-progress install
If mise creates an empty version directory after seed checks it, rename replaces that directory on Unix. The running install can then write into the borrowed tree instead of its own.
Learn more
The destination-exists check at seed happens before staging. On Unix, renaming a directory over an existing empty directory succeeds; it does not act as an exclusive create. A concurrent mise install can create an empty destination after that check, and the seeder can replace it before mise writes its files. The borrowed tree is hard-linked to the user's files, so mixing writes from the concurrent install with that tree also risks modifying the user's installation.
Example: Process A creates installs/node/24.21.0 and pauses before extracting Node. Process B's earlier check saw no destination and renames its completed staging directory over A's empty directory. When A resumes, its writes target B's borrowed installation instead of a fresh one.
Recommended fix: Publish with a no-replace operation rather than ordinary directory rename, and treat an existing destination as another install's responsibility. Ensure staging cleanup only removes this seeder's own directory.
Was this helpful? React with 👍 or 👎 to provide feedback.
A local run hard-links a version the user already has (Node, Go, Bun, aube,
Yarn, uv, Terraform) into the tool store instead of downloading it. The
store's links are its own, so pruning and clearing unproven installs never
touch the user's. Each version is borrowed once; a failure falls back to a
normal install. Versions in a root shared with others, like .NET's, are not
copied. The server never borrows.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ut of the install
Each run builds its copy in a staging directory of its own and renames it
into place, so two runs borrowing one version can no longer remove each
other's copy. Symlinks must resolve inside the version directory; absolute
ones (mise's .mise-bins) are pointed at the copy. The installation page now
mentions borrowing.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
run dispatches to config, TUI and tools handlers, and report takes its HTTP
options, recheck wording and Docker Hub credentials from small helpers.
No behaviour changes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
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.
Local runs hard-link a tool version the user already has in their own mise (Node, Go, Bun, aube, Yarn, uv, Terraform) into the Count's tool store instead of downloading it.
patchula-seeded.json); a failure falls back to a normal mise install.Measured on a fresh store with
patchula tools install: 35 s with borrowing, against 68 s without, on a fast connection; every borrowed tool ran from the store.🤖 Generated with Claude Code