Skip to content

Update LibGit2Sharp.NativeBinaries to 1.0.192+, to fix Linux/OpenSSL 1.1 #1408

@directhex

Description

@directhex

libgit is built against libcurl, for HTTP support

libcurl has a pluggable back-end for which SSL library to use, but the choice is made at compile-time and can't be swapped out

For old, esoteric, stupid reasons, libcurl.so.3 can be built against OpenSSL 1.1 or OpenSSL 1.0, but not both at once - and on systems where one is installed, the other breaks.

e.g.:

MSBUILD : warning : WARN [05/11/18 16:26:23:16] Could not determine assembly version: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: lib/linux/x86_64/libgit2-baa87df.so [x.csproj]
MSBUILD : warning :   at (wrapper managed-to-native) LibGit2Sharp.Core.NativeMethods.git_libgit2_init() [x.csproj]

This was fixed in LibGit2Sharp.NativeBinaries 1.0.192, which switched to using GNUTLS as its SSL library (which is less prone to breakage than OpenSSL).

As-is, this breaks on Ubuntu 18.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions