Is `curl --anyauth` supported properly when uploading documentation with cabal?

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
haskell

調査の方向性

この issue では cabal upload、curl --anyauth、Hackage server、および関連する Cabal と curl の議論が挙げられていますが、repository のファイルやテストはありません。まず cabal 3.14 でドキュメントのアップロードを再現し、--anyauth と --digest を比較してください。Hackage がアップロードを受信する前に challenge を送るかどうかを特定し、必要なサーバー側の修正またはドキュメントを特定できれば完了です。

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

説明

Re: https://github.com/haskell/cabal/issues/10920

Since cabal 3.14 (PR https://github.com/haskell/cabal/pull/10089) cabal upload uses --anyauth instead of --digest with curl.
On my machine at least, this broke the uploading of documentation.

I am reading https://github.com/curl/curl/issues/6309#issuecomment-743919485

--anyauth is not as efficient as --digest because it sends the content twice. the server should ask for authorization without the content.

Is hackage server handling this situation correctly?

NB: curl --version

curl 8.7.1 (x86_64-apple-darwin24.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.64.0
Release-Date: 2024-03-27
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL threadsafe UnixSockets

主要言語
Haskell
スター
471
フォーク
228
平均マージ
5日 6時間
マージ済み PR(30日)
3

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

haskell/hackage-server のほかの issue

haskell/hackage-server の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

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

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