rust-lang / git2-rs

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

>= 0.17.0 issues running cargo semver-checks #961

Closed dvzrv closed 11 months ago

dvzrv commented 1 year ago

Hi! I'm currently running into issues with cargo-semver-checks 0.21.0 (on Arch Linux, but can reproduce building straight from crates.io) and was asked to open a ticket here and link to this one.

Using git2 >= 0.17.0 cargo-semver-checks runs into TLS errors:

cargo semver-checks check-release
    Updating index
Error: the server did not provide a certificate; class=Ssl (16)

Caused by:
    the server did not provide a certificate; class=Ssl (16)

Current cargo-semver-checks 0.21.0 pulls in git2 0.17.0 and libgit2-sys 0.15.2+1.6.4, but only when downgrading git2 to 0.16.1 and libgit2-sys to 0.14.2+1.5.1, the issue described in the above ticket goes away.

dvzrv commented 1 year ago

To give further background info:

I am packaging libgit2 for Arch Linux. It is currently at 1.6.4 and we do not apply any patches (see PKGBUILD).

Our openssl in the stable repositories is at 3.0.9, soon 3.1.1 (see PKGBUILD).

ehuss commented 1 year ago

Can you provide a reproduction that uses this crate directly? Like perhaps running the clone example? It's also important to know how which SSL backend it is using, which version, etc.

dvzrv commented 11 months ago

I'm sorry, I won't be able to do this, as upstream has meanwhile switched to gix and I believe it would be a moot point to test this now (for me at least).

Thank you!