rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.69k stars 387 forks source link

Add a LIBGIT2_NO_VENDOR environment variable to build.rs #939

Closed kpcyrd closed 1 year ago

kpcyrd commented 1 year ago

This does the following things:

The LIBGIT2_NO_VENDOR variable is analogous to OPENSSL_NO_VENDOR in openssl-sys: https://github.com/sfackler/rust-openssl/pull/1253

There's currently no Error struct in the build.rs so I'm using a Result<(), ()>, if you prefer anything else just let me know.

classabbyamp commented 1 year ago

This would be very useful to void linux, as we've had issues with things not linking to our system libgit2, +1

lovesegfault commented 1 year ago

This needs a rebase

kpcyrd commented 1 year ago

I've rebased the patch

ehuss commented 1 year ago

Closing as completed from #966.