Skip to content

Commit

Permalink
Force cargo to use git cli instead of libgit2
Browse files Browse the repository at this point in the history
Cargo uses libgit2, which causes issues while building for aarch64 targets:
rust-lang/cargo#10583

As this is one of many errors caused by libgit2, it is adviced to use the local git binary:
https://docs.shipyard.rs/configuration/git-fetch-with-cli.html
  • Loading branch information
Andreas Schickedanz committed Feb 26, 2024
1 parent 8179f2d commit 2b2ed71
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SPDX-License-Identifier: MIT

# Cargo uses libgit2, which causes issues while building for aarch64 targets:
# https://github.com/rust-lang/cargo/issues/10583
#
# As this is one of many errors caused by libgit2, it is adviced to use the local git binary:
# https://docs.shipyard.rs/configuration/git-fetch-with-cli.html
[net]
git-fetch-with-cli = true

0 comments on commit 2b2ed71

Please sign in to comment.