Replace the vendored analyzer with a dependency once @codepact/core is published
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- github-actions, javascript, node.js
- Área
- build-system, devtools
Línea de trabajo
Read VENDORING.md and compare src/comments.js, src/parse.js, and src/analyze.js with the corresponding codepact-core modules. Check the status of codepact-core#8 and PR #11 first, since the issue recommends waiting for parity work to land. Once that dependency is published, add a pinned @codepact/core dependency and lockfile, remove the duplicated source and VENDORING.md, then run the self-test job; done means no src/ file duplicates codepact-core and the self-test passes unchanged.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
src/comments.js, src/parse.js and src/analyze.js are hand-ported CommonJS copies of the same modules in codepact-core. The reasoning is in VENDORING.md: a using: node20 action has no install step, so it can only depend on code committed to the repository, and committing readable source beats committing a minified bundle.
It is still duplication, and duplication drifts.
What needs to happen
- Publish
@codepact/coreto npm with a real version. - Add it as a dependency here, with a committed lockfile.
- Either commit
node_modulesfor that single dependency-free package, or add adist/build step — whichever keeps review honest. Since@codepact/corehas no transitive dependencies, committing it is a handful of readable files, not a vendored ecosystem. - Delete the vendored copies and the
VENDORING.mdrules that exist only to police them. - Pin the version and adopt upstream changes deliberately, so an upstream release cannot change what a consumer's
@v1build does without a commit here.
Why not yet
Publishing to npm is a one-way door: the name is claimed permanently and consumers start depending on the API. The parser API should settle first — codepact-core#1 and #2 both change what parseContractErrors returns.
Update: codepact-core#1 and #2 are now closed, resolved respectively by merged PRs codepact-core#6 (qualified attribute paths) and codepact-core#13 (constant discriminants). So this issue is unblocked on the API-settling front. The remaining open question is whether this repo's own vendored-analyzer parity (tracked in #8, with a fix proposed in open PR #11, not yet merged) should land first, so the npm-published version and this repo's current vendored copy are behaviourally identical before the swap.
Blocked on
— closed, viacodepact-core#1(qualified attribute paths)codepact-core#6.— closed, viacodepact-core#2(constant discriminants)codepact-core#13.- Recommend waiting on #8 (vendored-analyzer parity) landing first, so the swap to a published dependency doesn't also silently change behaviour at the same time.
Acceptance
- No file in
src/here duplicates a file incodepact-core. - The self-test job passes unchanged, proving behaviour did not shift during the swap.
- Lenguaje dominante
- JavaScript
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 7 h 28 min
- PR fusionados (30 d)
- 10
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 codepacct/codepact-action
-
documentation good first issue wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
codepacct/codepact-action#68 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
codepacct/codepact-action#67 ·
Los mantenedores suelen responder en 1 día
-
good first issue tests wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
codepacct/codepact-action#66 ·
Los mantenedores suelen responder en 1 día
-
good first issue tests wave
Dificultad 1/5 1-3 horas Aptitud para principiantes 79/100
codepacct/codepact-action#65 ·
Los mantenedores suelen responder en 1 día
-
good first issue tests wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
codepacct/codepact-action#64 ·
Los mantenedores suelen responder en 1 día
Todos los issues de codepacct/codepact-action
Issues similares
-
bug security
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
IbrahimHafez1/loadwise#251 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
erkamyaman/unslop-anything#421 ·
Los mantenedores suelen responder en 1 día