-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LibGit2Sharp.Core.NativeMethods cannot be initialized: Unable to load shared library 'git2-7ce88e6' or one of its dependencies #1852
Comments
as I mentioned #1824 (comment) the debian 10 is not yet supported. I'll need to think of a way to make it supported |
what do you think about the idea of having another version of GitVersion tool with that dependency included or ilmerged? GitLab CI runners are based on CoreOS and I cannot find a way to install packages there :( |
Are you able to run Docker images there? is so I'd recommend to use the image https://hub.docker.com/layers/gittools/gitversion/5.0.2-beta1-95-linux-debian-9-netcoreapp3.0/images/sha256-ba496f1885415be1bcac0256f0b1af4b6d1ab48db2d1de6116ce6e15462cf419 |
This image throws a different error:
|
Since others will come here looking for the same thing for alpine-3.9 it should be mentioned that alpine 3.9 was only supported in the most recent published packages. 5.0.2.beta+ |
Also spotted on Ubuntu 19.04+libcurl4 |
When will GitVersion be supported on Debian 10? |
It seems guys have figured out a root cause libgit2/libgit2sharp#1741 See this discussion libgit2/libgit2sharp#1732 I guess now it is required a new release to be built. |
Temporary solution for Docker:
|
@deadman2000 thanks for sharing |
Can we get a fix for this? We are struggling with this issue as well under amazon linux. |
@robertcoltheart, doesn't @deadman2000's |
@asbjornu No, the above export command doesn't seem to help, we are still getting the same error |
@robertcoltheart If you use GitVersion as tool, this
|
Hmm, we don't use docker currently for the EC2 instances. Will investigate further if the above can be adapted for our use case or not. |
Doesn't look like this will work for us. For clarification, we are using |
The solution that worked for us was to bump |
@robertcoltheart thanks for sharing, will take that into consideration |
This was working on Azure DevOps prior to Christmas using the LIBPATH fix, but it's broken now - anyone have a fix? |
We built our own version of |
What you're saying is that |
Yes it fixed our use case which was AWS Linux |
Notable issues: AppVeyor and parallel build: GitTools/GitVersion#1381 Shared library issues on CircleCI / Debian 10+: GitTools/GitVersion#1852
Notable issues: AppVeyor and parallel build: GitTools/GitVersion#1381 Shared library issues on CircleCI / Debian 10+: GitTools/GitVersion#1852
Notable issues: AppVeyor and parallel build: GitTools/GitVersion#1381 Shared library issues on CircleCI / Debian 10+: GitTools/GitVersion#1852
Is there any official way to support this? We're using our internal version but it would be nice to have this properly fixed. |
@robertcoltheart , currently we are almost ready to release 5.3.0. I would prefer to use a stable version of LibGit2Sharp in this release instead of using a preview. But depending on the response libgit2/libgit2sharp#1741 (comment) we might consider using the preview as well |
I commented on the the LibGit2Sharp issue as well, but I don't think we'll be doing a non-preview release any time soon. The work in that PR is mostly a patch to a larger problem that is still being worked on. Even using the preview release that includes that change, there are more Linux distros out there supported by .NET Core that won't work with LibGit2Sharp. The real fix is to move the support for https into managed code, and that work is ongoing, though progressing slowly. |
I think I will update Libgit2Sharp to preview version and will release it as 5.3.2 |
🎉 This issue has been resolved in version 5.3.2 🎉 Your GitReleaseManager bot 📦🚀 |
Created a separate story for the described behavior - #2260 |
@nZeus the GitLab shared Linux runners are now based on Debian 10, so I got GitVersion to work using @deadman2000's workaround above, just before I run my Cake build. See gitfool/Cake.Dungeon@0655e23. |
Trying to use GitVersion dotnet tool with .net core 3 sdk docker image that runs on GitLab Shared Runner (which is CoreOS).
The
5.0.2-beta.1+95
(contains #1849) throws this exception:The text was updated successfully, but these errors were encountered: