问题: backend/static/ 在 .gitignore 中忽略整个目录,导致 .gitkeep 无法被 git 追踪。全新 clone 后 go build ./... 报错: 'pattern all:static: cannot embed directory static: contains no embeddable files' 修复: - .gitignore: backend/static/ → backend/static/* + !backend/static/.gitkeep - 新增 backend/static/.gitkeep 占位文件(go:embed 需要至少一个可嵌入文件) 验证: go build ./... ✅ | tsc -b ✅ | npm build ✅(21s) | 17/17 集成测试 ✅ 质量: any=37 unused=2 console=0
0 lines
0 B
Plaintext
0 lines
0 B
Plaintext
The file is empty.