diff --git a/docs/plans/2026-10-03-p15a-approve-phases.md b/docs/plans/2026-10-03-p15a-approve-phases.md index cb8ff98..58809d5 100644 --- a/docs/plans/2026-10-03-p15a-approve-phases.md +++ b/docs/plans/2026-10-03-p15a-approve-phases.md @@ -32,10 +32,10 @@ cd crearte-server && docker run --rm -v "$PWD/src:/src" -w /src \ -v crearte_gomod:/go/pkg/mod -e GOCACHE=/gocache -v crearte_gocache:/gocache \ -e GOPROXY=https://goproxy.cn,direct -e GOSUMDB=sum.golang.google.cn \ - golang:1.24-alpine sh -c 'gofmt -l . ; go vet ./... ; go build ./... ; go test ./... -count=1' + golang:1.24-alpine sh -c 'gofmt -l . ; test -z "$(gofmt -l .)" ; echo gofmt_gate=$? ; go vet ./... ; go build ./... ; go test ./... -count=1' ``` -基线(spec §0,已实测):`gofmt -l .` 空 · `go vet` exit 0 · `go build` exit 0 · `go test ./... -count=1` **11 包 ok**(api ~11.0s 真库集成、service ~3.7s)。 +基线(spec §0,已实测):**`test -z "$(gofmt -l .)"` exit 0**(⚠️ 审查者 F3:`gofmt -l` 的语义是「列出需要格式化的文件」,**列出时仍 exit 0**,只在解析失败时 exit 2 → `gofmt_exit=0` **不是证据**;须同时存证 `gofmt -l .` 的**原始输出为空**。控制者与实现者共用旧配方,故同一盲点被复算两次而未被发现) ⚠️ **host Go 1.18 不可用**;**必须带 `GOPROXY=https://goproxy.cn,direct`**(`proxy.golang.org` 本机不可达,默认下载**挂死并杀代理**);冷构建 1–3 min → `background: true` + 耐心 poll,**不要 sleep 循环、不要因没立刻返回就断定失败**。 ⚠️ **`-count=1` 强制实跑**(禁缓存)。 diff --git a/docs/plans/2026-10-03-p15b-bootstrap-dark.md b/docs/plans/2026-10-03-p15b-bootstrap-dark.md index 0811833..14d8b0b 100644 --- a/docs/plans/2026-10-03-p15b-bootstrap-dark.md +++ b/docs/plans/2026-10-03-p15b-bootstrap-dark.md @@ -29,7 +29,7 @@ | **T1** | `app/lib/bootstrapTheme.test.ts`(**新增**) | **RED 先行**(spec §5-T1)。**10 腿**:①pre-paint 脚本在 `