libgit2 / libgit2/libgit2sharp

LibGit2Sharp.LibGit2SharpException: could not set credentials: could not open libssl

オープン
#2,114 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
C#
スター
3.5k
フォーク
925
PR マージ指標
30日以内にマージされた PR はありません

説明

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)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、libssl3 を備えた指定の .NET 8 Ubuntu 22.04 イメージ上で Azure DevOps clone を再現します。Ensure.cs、Proxy.cs、Repository.cs の失敗しているパスを読み、次に資格情報とネイティブ SSL 依存関係がどこで読み込まれるかを追跡します。提供された CloneOptions で libssl エラーなしに clone を完了できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, git, linux, ubuntu
領域
devtools, operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
28/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。