Skip to content

CLI app-generator 的 lucide-react 区间字面量落后 workspace(^1.29.0 vs ^1.31.0)—— 派生钉现在把全仓所有 PR 的 test shard 判红 #4968

Description

@yinlianghui

事实(PM 亲读 CI 日志 + main 考古,2026-08-17 08:3xZ)

  • c1454a2d9(dependabot PR chore(deps): bump lucide-react from 1.29.0 to 1.31.0 #4959)把 workspace 的 lucide-react 从 ^1.29.0 升到 ^1.31.0,已落 main。
  • packages/cli/src/utils/app-generator.ts 生成的 manifest 仍写 ^1.29.0 字面量。
  • packages/cli/src/__tests__/app-generator.test.ts:574:1139 的钉从仓内区间派生期望值(inRepoRangesOf('lucide-react')),于是在任何 PR 的 merge-ref 上都红:
AssertionError: routed manifest's lucide-react must match its in-repo range: expected '^1.29.0' to be '^1.31.0'

修法

app-generator.ts 的 lucide-react 字面量跟到 ^1.31.0(或按钉的设计意图改为从 workspace 派生 —— 钉注释自述「A literal here is the very fossil generator this file exists to prevent」,实施者读现场后择一,选择写进 PR)。顺手核对同一模板里其它第三方区间是否也在本轮 dependabot 批次(#4953-#4960)里被升而模板未跟。

为何 #4959 自己的 CI 没拦住

留给实施者顺手回答(一段即可,不扩围):dependabot PR 的检查面或时序为何没触发该钉。

Part of 今日 dependabot GA 批次的消费侧跟进。

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions