27 lines
826 B
Markdown
27 lines
826 B
Markdown
# 每日变动 2026-09-29
|
|
|
|
## 10:18 — 提交门禁:无 Go 不得跳过 make test
|
|
|
|
### 概要
|
|
|
|
- `make test` / pre-commit 在缺少 `go` 或 `golangci-lint` 时明确失败,禁止把「本机无 go」当作验证 skipped。
|
|
- 新增 `make setup`(装 hook + `check-dev`)。
|
|
|
|
### 变更范围
|
|
|
|
| 类型 | 说明 |
|
|
|------|------|
|
|
| 配置 | Makefile `check-go` / `check-golangci-lint` / `setup` |
|
|
| 配置 | `scripts/git-hooks/pre-commit` 前置工具检查 |
|
|
| 文档 | AGENTS、verify/git-commit 规则、spark-im-v3 skill、daily-change-list skill、README |
|
|
|
|
### 主要文件
|
|
|
|
- `Makefile` — `lint: check-dev`;缺工具 exit 1
|
|
- `scripts/git-hooks/pre-commit` — 无 go/lint 直接拒绝 commit
|
|
- `.cursor/rules/verify-before-done.mdc` / `git-commit-gate.mdc` — 策略说明
|
|
|
|
### 验证
|
|
|
|
- `make test`: pass
|