# LibGit2/libgit2 is failing while doing tests for v1.8.2

**URL:** <https://discourse.julialang.org/t/libgit2-libgit2-is-failing-while-doing-tests-for-v1-8-2/88727>\
**Category:** New to Julia\
**Created:** [October 14, 2022, 12:35pm UTC](https://discourse.julialang.org/t/libgit2-libgit2-is-failing-while-doing-tests-for-v1-8-2/88727 "2022-10-14T12:35:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinod\_Kumar\_K](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vinod_kumar_k/32/43551_2.png) [@Vinod\_Kumar\_K](https://discourse.julialang.org/u/Vinod_Kumar_K)\
**Post date:** [October 14, 2022, 12:35pm UTC](https://discourse.julialang.org/t/libgit2-libgit2-is-failing-while-doing-tests-for-v1-8-2/88727/1 "2022-10-14T12:35:14Z")

</div>

LibGit2/libgit2 (1) | failed at 2022-10-14T10:40:41.483  
Test Failed at /julia/juliabuild/usr/share/julia/stdlib/v1.8/LibGit2/test/libgit2.jl:3181  
Expression: err.code == LibGit2.Error.ECERTIFICATE  
Evaluated: LibGit2.Error.ERROR == LibGit2.Error.ECERTIFICATE  
Test Failed at /julia/juliabuild/usr/share/julia/stdlib/v1.8/LibGit2/test/libgit2.jl:3182  
Expression: startswith(lowercase(err.msg), lowercase(“The SSL certificate is invalid”))  
Evaluated: startswith(“user rejected certificate for localhost”, “the ssl certificate is invalid”)

---

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [October 14, 2022, 1:26pm UTC](https://discourse.julialang.org/t/libgit2-libgit2-is-failing-while-doing-tests-for-v1-8-2/88727/2 "2022-10-14T13:26:36Z")

</div>

Why are you running tests? I don’t the regular (new) users of Julia need to runs these test (they being there for core Julia developers or CI, at least need to be run correctly). Maybe I’m wrong about below, so I edited the post.

It seems you are building Julia and doing something wrong (I’m unclear if “localhost” should be used or why it appears there, and thus "the ssl certificate is invalid”), and the error not really about libgit.

It’s of course possible to build Julia, but since you’re new, do you think you have to? At least you can just use Julia precompiled binaries. You don’t need to build Julia, I’ve done it, but not recently, since there’s no good reason for me, mostly for core developers (and CI).

> <https://github.com/JuliaLang/julia/blob/v1.8.2/stdlib/LibGit2/test/libgit2.jl#L3182>

If it’s relevant the file is much smaller on master (not sure why the code was changed, maybe just reorganized): [julia/libgit2.jl at master · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/tree/master/stdlib/LibGit2/test/libgit2.jl)
