nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.22k stars 42 forks source link

Build fails on macOS 14.4.1 #256

Open ChaiTRex opened 6 months ago

ChaiTRex commented 6 months ago

I cannot install cargo-update on macOS Sonoma 14.4.1. It seems to fail on compiling the git2 crate, but creating a new crate and putting git2 = "0.18" in its dependencies will compile successfully. sudo port install libgit2 does not fix the issue.

cargo install cargo-update output

ChaiTRex commented 6 months ago

The solution at https://github.com/rust-lang/git2-rs/issues/180#issuecomment-433756520 fixes the issue:

RUSTFLAGS='-L /usr/lib' cargo install cargo-update