Consider supporting package aliases / remapping
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 領域
- tooling
調査の方向性
Start with the linked v1/Address.dhall definition and the package-set representation described in the issue. Compare the current Registry constructor with the proposed name remapping, then determine the required package-manager behavior for direct and transitive dependencies. Done means an agreed design and implementation scope for aliases or remapping.
索引モデルが issue の本文から書いたものです。
説明
Every entry in package sets produced by the registry uses the Address type, where a package set is a Map PackageName Address, ie. key/value pairs between package names and addresses:
A registry-produced package set can only use the Registry constructor, so the package set is essentially a list like this:
{ package-name = Registry "1.0.0" }
This indicates that when package-name is listed as a dependency in a project, package managers should fetch package-name from the registry at version 1.0.0, read its dependencies, and fetch all those dependencies following the same process.
This works just fine in the usual case where you bring in packages from the registry, but there are some times where this becomes inconvenient. Two examples were brought up in the registry call this morning:
- You are developing an alternate backend like
purerland you need to use forked versions of common packages likeprelude, because you need to re-implement the FFI. - Your company is using the JS backend, but you are using a custom fork of
preludeanyway, and you need forpreludein package sets to point to your forked prelude
How can users deal with these two situations? For example, if you are developing a purerl-compatible package set, where packages using the FFI are forked to their purerl- equivalents (ie. purerl-prelude replacing prelude), then what is the most straightforward way to produce this package set?
The suggestion that was raised in the registry call this morning was to introduce a name field to the Address type for the registry, ie.
let Address = \(externalPackage : Type) ->
< Registry : { name : Text, version : SemVer }
| External : externalPackage
>
Then, users can remap package names, ie. the prelude could be mapped to purerl-prelude while other packages are left alone:
-- prelude is remapped
{ prelude = { name = "purerl-prelude", version = "1.0.0" }
-- bifunctors is not
, bifunctors = { name = "bifunctors", version = "1.0.0" }
}
When a package manager sees prelude as a dependency in your package, it is meant to fetch purerl-prelude instead. When it sees bifunctors as a dependency, it should fetch that package as usual, and when it sees in the bifunctors manifest that it in turn relies on prelude, the package manager should recall that prelude has been remapped to purerl-prelude and fetch (or cache) that.
- 主要言語
- PureScript
- スター
- 95
- フォーク
- 79
- 平均マージ
- 16時間 13分
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
purescript/registry-dev のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 22/100
purescript/registry-dev#804 · コメント 9 件 ·
メンテナーはふだん 1 日以内に返信
-
A failed publish job permanently blocks retrying the same package version対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
purescript/registry-dev#793 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
Implement search and versioned Prim docs for the new Pursuit再び着手できるかも @thomashoneyman が 109 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンpursuit
purescript/registry-dev#790 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Migrate Pursuit application to the monorepo再び着手できるかも @thomashoneyman が 109 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンpursuit
purescript/registry-dev#789 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Complete support for monorepos / subdir key and non-GitHub locations再び着手できるかも @thomashoneyman が 109 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
purescript/registry-dev#750 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
purescript/registry-dev の issue をすべて見る
似ている issue
-
normalizePropName strips `#` characters from Figma property names instead of only the `#id` suffixオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
figma/code-connect#419 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jeanibarz/knowledge-base-mcp-server#1268 ·
メンテナーはふだん 1 日以内に返信
-
trace: Pi's 1-hour cache writes are priced at 1.25x, but billed at 2x対応中かも @Shizoqua が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
microsoft/TokenEconomizer#221 ·
メンテナーはふだん 1 日以内に返信
-
transformer-directives: `@apply` drops a utility whose CSS is a substring of an earlier one's対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信