Mattias Karlsson
Mattias Karlsson
> Here is workaround: > #addin nuget:?package=Cake.Git&version=1.0.1 > It use previous version of libgit2sharp and has no issue Interesting previous versions don't work with newer Linux distributions and MacOS versions....
But if previous versions work it's even more clear it's an upstream issue.
Probably it's just a matter of changing these lines https://github.com/cake-contrib/Cake_Git/blob/fce1d5e4469f7caf718d79ebc53c49d6a5aac9ca/src/Cake.Git/Cake.Git.csproj#L21-L22 to ```xml ``` Would you like to take stab at creating a PR with the above changes?
Could you create a draft PR? So we can see if it fails on CI too? Might be that we need to add some runtime folders. Worst case we'll need...
Which version of .NET is installed? Currently libgit2sharp requires .NET 4.7.2 / .NET Core 2, there's PR fir Libgit2Sharp to support 4.6.1 and once that's published I'll release a new...
Seems like a separate addin to me, there's some fundamental differences between libgit and git cli scripts. Essentially an fairly complete libgit to cli abstraction would need to be created.
One way to solve not even loading libgit could be to move current Cake.Git libgit implementation out of process too, and have a common cli protocol. between the different git...
@andreasnilsen to not break anything, perhaps add an `GitHasChanges` alias that checks all places?
Maybe overload [GitPush(this ICakeContext context, DirectoryPath repositoryDirectoryPath, string username, string password, string branchName)](https://cakebuild.net/api/Cake.Git/GitAliases/CDB85B38) is what you're looking for?
At the moment they can't be more isolated from each other, .NET Core 3 will likely introduce a component model that'll enable better isolation.