Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"invalid version 0 on git_proxy_options" from libgit2: cause? fix? walk-around?

Tags:

libgit2

I'm getting this error "invalid version 0 on git_proxy_options" from libgit2. This did not happen until very recently (I have recompiled my code so it may be a version issue). I'm not using a proxy. Does anyone know anything about this? What causes this message? Is there anything I can do to stop the failure? Either a fix or or a work-around will do.

Specifically, I am using the Rust crate git2 version 0.13.23. I am doing a fetch that triggers the error. This is on Fedora 34 on x86_64. I have searched on this but there does not seem to be any matches that help.

like image 930
Martin Ellison Avatar asked Oct 13 '25 07:10

Martin Ellison


1 Answers

git2 = {version="0.13.22", features = ["vendored-libgit2"]}

in Cargo.toml fixed the issue.

like image 63
Martin Ellison Avatar answered Oct 16 '25 00:10

Martin Ellison



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!