Consider supporting package aliases / remapping
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 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 分鐘
- 30 天內合併 PR
- 14
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
purescript/registry-dev 的其他 Issue
-
難度 5/5 一週以上 新手友好度 22/100
purescript/registry-dev#804 · 9 則留言 ·
維護者通常 1 天內回覆
-
A failed publish job permanently blocks retrying the same package version可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 4/5 3-5 天 新手友好度 48/100
purescript/registry-dev#793 · 5 則留言 ·
維護者通常 1 天內回覆
-
Implement search and versioned Prim docs for the new Pursuit可能重新可做 @thomashoneyman 於 110 天前認領,目前沒有進行中的 PR。 未關閉pursuit
purescript/registry-dev#790 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Migrate Pursuit application to the monorepo可能重新可做 @thomashoneyman 於 110 天前認領,目前沒有進行中的 PR。 未關閉pursuit
purescript/registry-dev#789 · 1 則留言 · 1 個 reaction · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Complete support for monorepos / subdir key and non-GitHub locations可能重新可做 @thomashoneyman 於 110 天前認領,目前沒有進行中的 PR。 未關閉
purescript/registry-dev#750 · 1 個 reaction · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 purescript/registry-dev 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 72/100
ScoopInstaller/Extras#19364 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
osrep/Runes2P.jl#279 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
1.3 bug
難度 2/5 1-3 小時 新手友好度 78/100
-
normalizePropName strips `#` characters from Figma property names instead of only the `#id` suffix未關閉
難度 2/5 1-3 小時 新手友好度 72/100
figma/code-connect#419 ·