Repository navigation
Defer Git initialization for fresh Cargo commands - #179
Open
charliermarsh wants to merge 1 commit into
Open
charliermarsh wants to merge 1 commit into
charliermarsh wants to merge 1 commit into
Conversation
charliermarsh
force-pushed
the
charlie/uv-defer-git-initialization
branch
from
October 21, 2026 11:33
8a5d151 to
19718e6
Compare
charliermarsh
changed the base branch from
charlie/ruff-devloop-cargo-metadata
to
charlie/uv-preserve-unset-loader-path
October 21, 2026 11:33
charliermarsh
marked this pull request as ready for review
October 21, 2026 11:34
This was referenced Oct 21, 2026
charliermarsh
force-pushed
the
charlie/uv-defer-git-initialization
branch
from
November 17, 2026 06:26
19718e6 to
dcb724b
Compare
charliermarsh
force-pushed
the
charlie/uv-defer-git-initialization
branch
from
November 17, 2026 07:02
dcb724b to
a7b1fb7
Compare
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.
Fresh Cargo commands initialize libgit2 and its TLS context even when they never access Git. Register the CLI’s Git policy at startup and apply it before repository access or workers that may need it. Keep certificate probing at startup and preserve library users’ ownership validation.
On fresh, unchanged uv commands against the original #175, Cargo userspace instructions fell 3.98% for
cargo checkand 3.39% forcargo test --no-run(12 pairs each). Native wall-time results were inconclusive. The measurements predate the restack; raw data and reproduction details are available separately.