Skip to content

git: 2.55.0 + Rust toolchain (libgitcore.a) - #377

Merged
twitchyliquid64 merged 1 commit into
mainfrom
git-255-rust
Jul 10, 2026
Merged

git: 2.55.0 + Rust toolchain (libgitcore.a)#377
twitchyliquid64 merged 1 commit into
mainfrom
git-255-rust

Conversation

@bryan-minimal

Copy link
Copy Markdown
Member

What

Bumps git 2.54.0 → 2.55.0 and adds the Rust toolchain as a build dep.

git 2.55.0's Makefile now compiles a Rust component (target/release/libgitcore.a via cargo) as part of the default build — 2.54.0 didn't. Without a cargo on PATH the build FTBFS with cargo: command not found (this is why git was dropped from the #375 auto-bundle → tracked as #376).

Change

  • build.ncl: add rust to build_deps (same toolchain ~dozens of pure-Rust packages already use).
  • build.sh: export RUSTFLAGS="-C linker=gcc --remap-path-prefix=$(pwd)=/builddir --remap-path-prefix=$HOME/.cargo=/cargo" so the Rust static lib is reproducible, mirroring the existing C -ffile-prefix-map.

Build-proven (clean-main worktree, minimal package --rebuild git)

  • EXIT 0 — was cargo: command not found / make: *** [libgitcore.a] Error 127.
  • Rust component linked instrings usr/bin/git contains rustc version 1.95.0 (…) (built from a source tarball); libgitcore compiled with our rust toolchain.
  • Reproducible — two independent --rebuild passes produced a byte-identical git (sha256 509eb189…).
  • No host-path leak — no /Users/bryan in the binary; the RUSTFLAGS remap works.

Note for reviewers

This makes git build-depend on the whole Rust toolchain — a real supply-chain expansion, which is why it's a deliberate standalone PR rather than an auto-bundle bump. That's the intended trade (git upstream is migrating to Rust).

Closes #376.

git 2.55.0's Makefile builds a Rust component (target/release/libgitcore.a
via cargo) as part of the default build, which 2.54.0 didn't. Add `rust` to
build_deps so cargo is on PATH, and set RUSTFLAGS with --remap-path-prefix so
the Rust static lib is reproducible (mirrors the existing C -ffile-prefix-map).

Build-proven in a clean-main worktree:
- `minimal package --rebuild git` → EXIT 0 (was FTBFS: `cargo: command not found`)
- rustc-1.95.0 marker embedded in usr/bin/git → libgitcore compiled + linked
- two --rebuild passes byte-identical (sha256 509eb189…) → reproducible
- no host paths leaked into the binary → remap works

Closes #376.
@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 48 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 72dea93f-e2a5-492c-b8da-ab27c698d6c6

📥 Commits

Reviewing files that changed from the base of the PR and between 0bcbecf and 555890b.

📒 Files selected for processing (2)
  • packages/git/build.ncl
  • packages/git/build.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch git-255-rust

Comment @coderabbitai help to get the list of available commands.

@twitchyliquid64
twitchyliquid64 added this pull request to the merge queue Jul 10, 2026
Merged via the queue into main with commit 54e5d28 Jul 10, 2026
6 checks passed
@twitchyliquid64
twitchyliquid64 deleted the git-255-rust branch July 10, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

git 2.55.0 requires Rust toolchain (libgitcore.a) — adopt or pin at 2.54

2 participants