问题
根模块 go test ./...(即便有 go.work)不会类型检查独立的 example 模块,CI(.github/workflows/lint.yml)同样漏掉。本地 13 个 example 目前可编译,但回归可能静默合入。
其它不一致:
- Taskfile 覆盖率无
-race,CI race 无覆盖率
- lint timeout:Task 10m vs CI 3m
coverage.html 未 gitignore
建议
- CI 增加
go build/go test 针对 example 模块
- 对齐 race/cover/lint;gitignore
coverage.html
问题
根模块
go test ./...(即便有go.work)不会类型检查独立的example模块,CI(.github/workflows/lint.yml)同样漏掉。本地 13 个 example 目前可编译,但回归可能静默合入。其它不一致:
-race,CI race 无覆盖率coverage.html未 gitignore建议
go build/go test针对example模块coverage.html