Removing dependencies on global IPLD registries

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
go
領域
backend

調査の方向性

まず boxo/ipld/merkledag の registry と go-ipld-prime のオプションの registry を調査します。merkledag からの推移的な使用も含めます。これらの registry にどこでアクセスしているか、また codec データの型がどのようにチェックされているかを追跡します。残っているグローバル registry 依存関係に対して、非グローバルまたは opt-in の代替手段が定義され、それらの呼び出し経路を壊さない状態になれば完了です。

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

説明

need/triage

While #291 will end up taking care of the special registries in go-ipld-format and go-ipld-legacy there will still be a couple remaining.

  1. The one in boxo/ipld/merkledag
  2. The optional one in go-ipld-prime, but which is used in a lot of places (including transitively in merkledag)

Ultimately these registries have been ok so far as there is only one implementation of a given codec in a single registry, however as soon as that's not true things become more complicated. Furthermore, unlike with the multihash global registry there's code that does type checking against the data that comes out of the registry which leads to breakages as in #291

This is lower priority than #291 since it's not actively causing problems for people, but the more our library tooling propagates the globals as the only option (rather than opting in/out) the more work it'll be to deal with this later.

主要言語
Go
スター
326
フォーク
165
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

ipfs/boxo のほかの issue

ipfs/boxo の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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