-
Notifications
You must be signed in to change notification settings - Fork 64
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
Clone test - The type initializer for 'ManagedHttpSmartSubtransportStream' threw an exception #151
Comments
Thanks for confirmation. |
@savornicesei Indeed the problem is internal to libgit2sharp and will need to be fixed there. Tracking via libgit2/libgit2sharp#1904 |
Hi, I have faced with same error, what has broken? windows update? |
@SergeiTerentev Could be... The libgit2sharp team might know more details -> libgit2/libgit2sharp#1904 |
Here is workaround: |
Interesting previous versions don't work with newer Linux distributions and MacOS versions. Guess the workaround could then be to pin the version with an environment variable until it's fixed upstream i.e. #addin nuget:?package=Cake.Git&%CAKE_GIT_VERSION_OVERRIDE%
var testCloneRepo = MakeAbsolute(Directory("./TestRepo/CloneRepo"));
var sourceUrl = "https://github.com/WCOMAB/CakeGitTestRepo.git";
if (DirectoryExists(testCloneRepo))
{
DeleteDirectory(
testCloneRepo,
new DeleteDirectorySettings {
Recursive = true,
Force = true
}
);
}
Information("Cloning repo {0}...", sourceUrl);
var repo = GitClone(sourceUrl, testCloneRepo);
Information("Cloned {0}.", repo); And then it can be overridden by an env variable like this $ENV:CAKE_GIT_VERSION_OVERRIDE="version=1.01"
dotnet cake .\cakegit.cake |
But if previous versions work it's even more clear it's an upstream issue. |
This worked for me. You just saved my life |
libgit2/libgit2sharp#1904 has been closed as fixed in LibGit2Sharp 0.29.0 Created #176 to track update of Cake.Git to LibGit2Sharp 0.29.0 |
due to a bug in LibGit2Sharp Details cake-contrib/Cake_Git#151 (comment)
Hi,
I'm just running the build script on develop branch, on W10 `.\build.ps1' and I get this error on the Clone test:
Is there some setup required for succesfully run the net461 tests?
Thanks,
Simo
The text was updated successfully, but these errors were encountered: