Replace the vendored analyzer with a dependency once @codepact/core is published
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- github-actions, javascript, node.js
- 领域
- build-system, devtools
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- JavaScript
- 星标
- 0
- 派生
- 0
- 平均合并
- 7 小时 28 分钟
- 30 天内合并 PR
- 10
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
codepacct/codepact-action 的其他 Issue
-
documentation good first issue wave
难度 2/5 1-3 小时 新手友好度 78/100
codepacct/codepact-action#68 ·
维护者通常 1 天内回复
-
documentation good first issue wave
难度 2/5 1-3 小时 新手友好度 86/100
codepacct/codepact-action#67 ·
维护者通常 1 天内回复
-
good first issue tests wave
难度 2/5 1-3 小时 新手友好度 76/100
codepacct/codepact-action#66 ·
维护者通常 1 天内回复
-
good first issue tests wave
难度 1/5 1-3 小时 新手友好度 79/100
codepacct/codepact-action#65 ·
维护者通常 1 天内回复
-
good first issue tests wave
难度 2/5 1-3 小时 新手友好度 84/100
codepacct/codepact-action#64 ·
维护者通常 1 天内回复
查看 codepacct/codepact-action 的全部 Issue
相似的 Issue
-
bug security
难度 2/5 1-3 小时 新手友好度 76/100
IbrahimHafez1/loadwise#251 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 87/100
erkamyaman/unslop-anything#421 ·
维护者通常 1 天内回复