Consider supporting package aliases / remapping
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Área
- tooling
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- PureScript
- Estrellas
- 95
- Forks
- 79
- Merge medio
- 16 h 13 min
- PR fusionados (30 d)
- 14
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de purescript/registry-dev
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 22/100
purescript/registry-dev#804 · 9 comentarios ·
Los mantenedores suelen responder en 1 día
-
A failed publish job permanently blocks retrying the same package versionPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
purescript/registry-dev#793 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
Implement search and versioned Prim docs for the new PursuitQuizá libre de nuevo @thomashoneyman la tomó hace 109 días y no hay ningún pull request abierto. Abiertopursuit
purescript/registry-dev#790 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Migrate Pursuit application to the monorepoQuizá libre de nuevo @thomashoneyman la tomó hace 109 días y no hay ningún pull request abierto. Abiertopursuit
purescript/registry-dev#789 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Complete support for monorepos / subdir key and non-GitHub locationsQuizá libre de nuevo @thomashoneyman la tomó hace 109 días y no hay ningún pull request abierto. Abierto
purescript/registry-dev#750 · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de purescript/registry-dev
Issues similares
-
normalizePropName strips `#` characters from Figma property names instead of only the `#id` suffixAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
figma/code-connect#419 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
jeanibarz/knowledge-base-mcp-server#1268 ·
Los mantenedores suelen responder en 1 día
-
trace: Pi's 1-hour cache writes are priced at 1.25x, but billed at 2xPosiblemente ocupada @Shizoqua la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
microsoft/TokenEconomizer#221 ·
Los mantenedores suelen responder en 1 día
-
transformer-directives: `@apply` drops a utility whose CSS is a substring of an earlier one'sPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día