Skip to content

Commit

Permalink
Tell Cargo to use git CLI directly
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Crane <marcus@utf9k.net>
  • Loading branch information
marcus-crane committed Jan 1, 2025
1 parent 847bb9c commit cddf8f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zshrc.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,14 @@ export GOPATH="$WORKSPACE/go"
export PATH="$PATH:$GOPATH/bin"
```
### Rust
For certain applications and utilities that require compilation from source, Cargo tends to fall over when running up against 1Password's built-in SSH agent so we [tell Cargo](https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli) to use the `git` CLI directly.
```bash
export CARGO_NET_GIT_FETCH_WITH_CLI=true
```
## Shortcuts
Admittedly most of the git related stuff could live inside of a `.gitconfig` file but I never get around to moving it
Expand Down

0 comments on commit cddf8f6

Please sign in to comment.