Repository navigation
Conversation
Contributor
Author
|
补一条依赖说明:本 PR 的 11 个 已按同样方式提单:#4604(issue)+ #4605(PR, 因此本 PR 要等 #4605 先合、再 rebase 后重跑 |
Contributor
Author
This was referenced Oct 24, 2026
ranxianglei
pushed a commit
that referenced
this pull request
Oct 24, 2026
ranxianglei
pushed a commit
that referenced
this pull request
Oct 24, 2026
…aster-red #4599, same one-liner as #4603) Master-born red since #4545 landed: 0fe7589 removed the non-dsh lanes' consumers of ClientBuildCheck (owner decision: keep the note to the dsh lane), leaving the type referenced only inside client-build-note.ts itself, and the 4d34abf de-export sweep missed it. Every PR rebased onto tip inherits the unused-exports failure (tracked in #4599; fix PR #4603 pending merge). This branch carries the identical one-line fix as its own labeled commit per the few-line-fix discipline (duplicate fixes across PRs are acceptable).
This was referenced Oct 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4602
改动(一行)
src/agent/client-build-note.ts:32去掉export:为什么
master head
146b34f27起CI的unused-exportsjob 在 master 上就红(run 40111170499, job120923016330):门禁自己给出的处置就是 INTERNAL_ONLY → drop the leading
export。该类型确实只在本文件内使用:git grep ClientBuildCheck origin/master只有 5 处,全在src/agent/client-build-note.ts(32 声明、45maxTestedVersion形参、81DSH_BUILD_CHECK类型标注、93 / 115check:字段)src/agent/dsh-native.ts:55导入DSH_BUILD_CHECK, emitNewerClientBuildNote, walkUpNodeModuleVersion;tests/client-build-note.test.ts:13导入DSH_BUILD_CHECK, emitNewerClientBuildNote, maxTestedVersion, newerClientBuildMessage, walkUpNodeModuleVersiontsconfig.json是noEmit: true,tsup.config.ts没有dts,包也不发布types验证
npx tsc --noEmit -p tsconfig.json→ exit 0(kernel 先npx tsc -p kernel/tsconfig.json重建,否则会因本地 dist 陈旧报acp-kernel has no exported member 'restampRefsToLedger')影响
这是纯门禁解红:该 job 是每个 PR 的静态前置门之一,现在任何 PR(例如 #4263 的 head
9f485444a,run 40115261762)都会继承这条失败,红信号因此失去区分度。如果这个类型本来就打算作为对外 surface(供客户端构建检查消费),那正确做法是补上真实使用者或按
WAIVERS里的先例写一条带理由的豁免——但现状(导出了却没人 import)无论哪种都该改。