rc.18 drift alarm false-positives on the template's own typescript peer-dep literal
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 54/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- build-system, tooling
调研方向
Start with packageObjectNeedsCatalogRefs in the scaffold and upgrade ref-rewrite detection, then compare it with the root package.json migration that writes peerDependencies.typescript. Run pnpm exec bos upgrade --check in a fresh rc.18 child and confirm the false positive. Done means the migration and check agree on the peer dependency and repeated checks do not reintroduce drift.
由索引模型根据 Issue 内容生成。
描述
Summary
bos upgrade --check reports updatesAvailable: true on an rc.18 child with zero actual deltas, failing child CI's platform-drift alarm. The trigger is the root package.json:
- The rc.18 upgrade's root-package migration (matching the published template bytes) writes
peerDependencies.typescript: "^7.0.2"— a literal, exactly like the parent repo's ownpackage.jsonat the release tag. - The same check's ref-rewrite detection (
packageObjectNeedsCatalogRefs, scaffold/upgrade) counts any non-catalog:entry for an inherited-catalog package as pending drift — andtypescriptis in the inherited catalog. - Result: the migration normalizes away from
catalog:and the alarm immediately flags it. Template and alarm disagree; settingpeerDependencies.typescript: "catalog:"locally flips the alarm back to green (verified in a fresh worktree both ways).
Repro (fresh checkout of any rc.18 child)
pnpm install --frozen-lockfile --ignore-scripts
pnpm exec bos upgrade --check; echo $?
# exit 1 — packages from==to, no catalog deltas; only ref-rewrite detection fires
# JSON: { "packages": [ everything-dev from==to, every-plugin from==to ], "updatesAvailable": true }
Then set peerDependencies.typescript: "catalog:" → exit 0.
Suggested fix
Either (a) normalize the root package migration's typescript peer dep to catalog: (aligning template bytes with the check), or (b) make the ref-rewrite detection treat peerDependencies as literal-tolerant (peer-dep authors legitimately pin floors) — or filter typescript specifically. Also worth noting the alarm's run-to-run state: with catalog: the next upgrade may re-normalize to the literal again, re-tripping it — pick one direction for the template bytes and make the check agree with it.
- 主要语言
- TypeScript
- 星标
- 5
- 派生
- 3
- 平均合并
- 9 小时 55 分钟
- 30 天内合并 PR
- 108
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NEARBuilders/everything-dev 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
NEARBuilders/everything-dev#400 ·
维护者通常 1 天内回复
-
Parent runtime republished with react 19.2.9 shared deps breaks rc.16-pinned children (SSR composition fails)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 5/5 一周以上 新手友好度 35/100
NEARBuilders/everything-dev#546 ·
维护者通常 1 天内回复
-
bug
难度 5/5 一周以上 新手友好度 25/100
NEARBuilders/everything-dev#531 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
NEARBuilders/everything-dev#526 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 42/100
NEARBuilders/everything-dev#518 · 1 条评论 ·
维护者通常 1 天内回复
查看 NEARBuilders/everything-dev 的全部 Issue
相似的 Issue
-
area:agent-view area:tui bug platform:macos
难度 2/5 1-3 小时 新手友好度 70/100
anthropics/claude-code#104558 ·
维护者通常 1 天内回复
-
updater
难度 2/5 1-3 小时 新手友好度 68/100
UniversityOfHelsinkiCS/oodikone#5141 ·
-
maintanance
难度 2/5 1-3 小时 新手友好度 74/100
inmanta/web-console#7606 ·
维护者通常 1 天内回复
-
bug skills
难度 2/5 1-3 小时 新手友好度 77/100
equinor/fusion-framework#5846 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 74/100