libgit2 / libgit2/libgit2sharp
LibGit2Sharp.LibGit2SharpException: could not set credentials: could not open libssl
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C#
- Estrellas
- 3.5k
- Forks
- 925
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
You are opening a bug report against the LibGit2Sharp project: we
use GitHub Issues for tracking bug reports and feature requests. If
you have a question about an API or usage, please ask on StackOverflow:
http://stackoverflow.com/questions/tagged/libgit2sharp.
Otherwise, to report a bug, please fill out the reproduction steps
(below) and delete these introductory paragraphs. Thanks!
Reproduction steps
Just to try clone a repository form Azure DevOps.
var options = new CloneOptions
{
FetchOptions = {
CredentialsProvider = CredentialsProvider,
OnTransferProgress = OnTransferProgress
},
OnCheckoutProgress = OnCheckoutProgress
};
Repository.Clone(remoteUrl, local.FullName, options);
Expected behavior
Actual behavior
Error thrown
LibGit2Sharp.LibGit2SharpException: could not set credentials: could not open libssl
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 154
at LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 172
at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts) in /_/LibGit2Sharp/Core/Proxy.cs:line 278
at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options) in /_/LibGit2Sharp/Repository.cs:line 824
Version of LibGit2Sharp (release number or SHA1)
0.30
Operating system(s) tested; .NET runtime tested
dotnet 8.0 image (ubuntu 22.04 + libssl3)
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza reproduciendo el clon de Azure DevOps en la imagen indicada de .NET 8 Ubuntu 22.04 con libssl3. Lee las rutas que fallan en Ensure.cs, Proxy.cs y Repository.cs; después, sigue el rastro de dónde se cargan las credenciales y la dependencia nativa de SSL. Se considera terminado cuando las CloneOptions proporcionadas pueden completar el clon sin el error de libssl.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp, git, linux, ubuntu
- Área
- devtools, operating-systems
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 28/100