Skip to content

Commit 4a56963

Browse files
committed
fix(devx): 红色输出不再把 #5726 的下游症状说成必然
原措辞写「It fails at 'datasource: connect failed'」,像是任何缺失都会这样。 不成立:门禁在任一 dist 入口缺失时就会红,而只缺 `packages/lint/dist` 时 boot 可能根本不碰 datasource。把一个只在部分场景成立的症状许诺成普遍规律, 正是本 PR 要治的那种误导的缩小版。 改为归因而非许诺:「Where that led once it was chased (#5726)」。判定、点名与 那一句修法都不变;`--self-test` 里「红输出中恰好只有一条命令」的断言仍然绿。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GX3sL71LFq8m2usg6VqTSE
1 parent 7bc2711 commit 4a56963

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎scripts/check-dev-prereqs.mjs‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,12 @@ function report(verdict) {
225225
`\n✗ The workspace is not built — 1 unmet precondition, not a list of problems.\n\n` +
226226
` ${missing.length} of ${checked} workspace packages declare an entry point under dist/ that is not on disk:\n\n` +
227227
`${list}${more}\n\n` +
228-
` Booting anyway never names this. It fails at 'datasource: connect failed'\n` +
229-
` and suggests two fixes that are both wrong for this cause — neither editing the\n` +
230-
` datasource config nor OS_ALLOW_DRIVER_CONNECT_FAILURE=1 builds the missing artifact —\n` +
231-
` and hand-building the named package then prints 20+ TS errors that read like real\n` +
232-
` contract drift and are only a stale dist (objectstack-ai/objectstack#5726).\n\n` +
228+
` Booting anyway never names this. Where that led once it was chased\n` +
229+
` (objectstack-ai/objectstack#5726): a 'datasource: connect failed' whose two\n` +
230+
` suggested fixes are both wrong for this cause — neither editing the datasource\n` +
231+
` config nor OS_ALLOW_DRIVER_CONNECT_FAILURE=1 builds a missing artifact — and then\n` +
232+
` 20+ TS errors from hand-building the package, reading exactly like real contract\n` +
233+
` drift while being nothing but a stale dist.\n\n` +
233234
` Fix:\n\n` +
234235
` ${fix}\n`,
235236
);

0 commit comments

Comments
 (0)