-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Description
I get the error below when running on Ubuntu 20.10. I did a bit of research on this and it appears that LibGit2Sharp just doesn't support this version on Linux. Is there any way around this, or a way to make cross platform support more robust?
Unhandled exception. System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
---> System.DllNotFoundException: Unable to load shared library 'git2-106a5f2' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libgit2-106a5f2: cannot open shared object file: No such file or directory
at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary()
at LibGit2Sharp.Core.NativeMethods..cctor()
--- End of inner exception stack trace ---
at LibGit2Sharp.Core.NativeMethods.git_repository_discover(GitBuf buf, FilePath start_path, Boolean across_fs, FilePath ceiling_dirs)
at LibGit2Sharp.Core.Proxy.<>c__DisplayClass219_0.<git_repository_discover>b__0(GitBuf buf)
at LibGit2Sharp.Core.Proxy.ConvertPath(Func`2 pathRetriever)
at LibGit2Sharp.Core.Proxy.git_repository_discover(FilePath start_path)
at LibGit2Sharp.Repository.Discover(String startingPath)
at GitIStage.Program.ResolveRepositoryPath() in /home/connor/src/git-istage/src/git-istage/Program.cs:line 37
at GitIStage.Program.Main() in /home/connor/src/git-istage/src/git-istage/Program.cs:line 15
Aborted (core dumped)
giggio