chore: 初始化 T-001 Go 骨架
This commit is contained in:
@@ -48,3 +48,12 @@
|
||||
- 验证:`git status --short` 确认删除前后均无该目录的跟踪历史;删除后工作区干净。
|
||||
- 决策:不改写为新契约的最小测试,直接删除——脚本是硬编码的本地联调工具(不入库),暂不需要自动化测试覆盖。
|
||||
- 下一步:T-001,进入路线图阶段 0(go module + 双子命令骨架)。
|
||||
|
||||
## 2026-07-06 T-001 初始化 Go module 与双子命令骨架
|
||||
|
||||
- 状态:DONE
|
||||
- 变更:新增 `go.mod`/`go.sum`、`main.go`、`main_test.go`、`config/config.go`、`config/config_test.go`、`config.yaml.example`;`tasks.md` 标记 T-001 完成;`docs/05` 勾选阶段 0 第一项。
|
||||
- 验证:`go test ./...` 通过;`go build ./...` 通过;`go run . -mode server -config config.yaml.example` 输出 `chis_osi mode=server`;`go run . -mode deliver -config config.yaml.example` 输出 `chis_osi mode=deliver`。
|
||||
- 验证补充:`bash init.sh` 在当前 Windows 环境失败,系统提示未安装 WSL;已用等价 Go 命令完成验收。
|
||||
- 决策:Go module 使用本地模块名 `chis_osi`;`main.go` 只打印 mode,不打印配置值,避免泄露真实环境信息;`config.yaml.example` 只保留占位值。
|
||||
- 下一步:T-002(`osi/sign.go` MD5 头签名 + 单测)。
|
||||
|
||||
Reference in New Issue
Block a user