Closed evil-shrike closed 6 years ago
Tried to pin to the previous version:
#addin nuget:?package=Cake.Git&version=0.16.1
didn't help
Well it's not a problem of Cake.Git, it's issue with LibGit2Sharp. It turned out that installing libcurl3
solves the problem.
Thanks, @evil-shrike.
It's related to #61 but in my case it's happening on Ubuntu Xenial (not CentOS).
I have a Docker container with TeamCity agent (
FROM jetbrains/teamcity-agent
) where I run my build with Cake 0.25.0. Cake script has import#addin "Cake.Git"
. Previously it worked fine. But yesterday I rebuilt the container to update it to using .net core 2.1 and my builds start failing.The error is pretty typical for LibGit2Sharp - DllNotFoundException for lib/linux/x86_64/libgit2-1196807.so I checked that that module (libgit2-1196807.so) exists in Cake's tools dir, it does:
/opt/buildagent/work/e1fb3d71588668ec/Build/tools/Addins/cake.git/Cake.Git/lib/net46/lib/linux/x86_64/libgit2-1196807.so
But it looks suspicious that the package is installed into net46 folder.
The error: