Skip to content

Commit 5775c4d

Browse files
committed
Fix error in Elm Editor when running in Docker
Integrate new implementations from libgit2/libgit2sharp#1618 With the previous version, in deployments on Docker found the 'load from git' function in the Elm Editor did not work. The backend returned this error with the HTTP response: ``` Exception in volatile host: System.AggregateException: One or more errors occurred. (The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an 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_clone(git_repository*& repo, String origin_url, FilePath workdir_path, GitCloneOptions& opts) at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts) at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options) at Kalmit.LoadFromGithub.LoadFromUrl(String sourceUrl) in /app/PersistentProcess/PersistentProcess.Common/LoadFromGithub.cs:line 109 at Kalmit.LoadFromPath.LoadTreeFromPath(String path) in /app/PersistentProcess/PersistentProcess.Common/LoadFromPath.cs:line 11 [...] ``` See the discussion of the problem at libgit2/libgit2sharp#1798 Another workaround found in the discussion was switching to the bionic flavor of the .net docker image.
1 parent d53ddb8 commit 5775c4d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

implement/PersistentProcess/PersistentProcess.Common/PersistentProcess.Common.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PackageReference Include="JavaScriptEngineSwitcher.ChakraCore" Version="3.9.1" />
99
<PackageReference Include="JavaScriptEngineSwitcher.ChakraCore.Native.linux-x64" Version="3.9.1" />
1010
<PackageReference Include="JavaScriptEngineSwitcher.ChakraCore.Native.win-x64" Version="3.9.1" />
11-
<PackageReference Include="LibGit2Sharp" Version="0.26.2" />
11+
<PackageReference Include="LibGit2Sharp" Version="0.27.0-preview-0096" />
1212
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="3.6.0" />
1313
<PackageReference Include="Mono.Posix.NETStandard" Version="1.0.0" />
1414
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />

implement/PersistentProcess/PersistentProcess.WebHost/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ namespace Kalmit.PersistentProcess.WebHost
22
{
33
public class Program
44
{
5-
static public string AppVersionId => "2020-12-29";
5+
static public string AppVersionId => "2021-01-01";
66
}
77
}

implement/elm-fullstack/elm-fullstack.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<TargetFramework>netcoreapp3.1</TargetFramework>
66
<RootNamespace>elm_fullstack</RootNamespace>
77
<AssemblyName>elm-fullstack</AssemblyName>
8-
<AssemblyVersion>2020.1229.0.0</AssemblyVersion>
9-
<FileVersion>2020.1229.0.0</FileVersion>
8+
<AssemblyVersion>2021.0101.0.0</AssemblyVersion>
9+
<FileVersion>2021.0101.0.0</FileVersion>
1010
</PropertyGroup>
1111

1212
<PropertyGroup>

0 commit comments

Comments
 (0)