From 5c46b45b2700af30eb3449b81a16421ada9501ac Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Fri, 8 May 2026 13:41:13 +1000 Subject: [PATCH] fix: vendor libgit2 to avoid system library linking failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add vendored-libgit2 feature to the git2 dependency in git-diff so libgit2 is built from source instead of linking against the system library. This prevents build failures when the Homebrew libgit2 path changes after upgrades (e.g. 1.9.2_1 → 1.9.3), which caused "library 'git2' not found" linker errors even after cargo clean. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Matt Toohey --- crates/git-diff/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/git-diff/Cargo.toml b/crates/git-diff/Cargo.toml index ee6f9725..b23672fc 100644 --- a/crates/git-diff/Cargo.toml +++ b/crates/git-diff/Cargo.toml @@ -7,7 +7,7 @@ description = "Git diff computation: file listing, content diffing, and alignmen [dependencies] serde = { version = "1.0", features = ["derive"] } thiserror = "2.0" -git2 = { version = "0.20", features = ["vendored-openssl"] } +git2 = { version = "0.20", features = ["vendored-openssl", "vendored-libgit2"] } base64 = "0.22" log = "0.4"