Files
aiops/.gitignore
T
attacker eddf01dd79 fix(build): go:embed all:static 编译阻塞修复 — .gitignore 允许 .gitkeep 占位
问题: 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
2026-07-02 08:26:56 +08:00

98 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Dependencies
node_modules/
frontend/node_modules/
# 安装包(不入库)
*.deb
*.rpm
*.dmg
# Build output
frontend/dist/
frontend/dist-ssr/
backend/bin/
*.exe
*.exe~
*.dll
*.so
*.dylib
# Go
backend/vendor/
*.test
*.out
# Compiled binary(前导 / 只匹配仓库根目录的二进制产物,避免误伤子目录同名文件夹如 frontend/src/components/aiops/) // Logan.Li
/aiops
/aiops-*
/aiops.bak.*
# 前端构建产物(由 run.sh build 自动生成,非源码)
backend/static/assets/
backend/static/index.html
backend/static/vite.svg
# local 模式数据库(主文件 + SQLite WAL 附属文件,非独立库)
sqlite3.db
sqlite3.db-shm
sqlite3.db-wal
sqlite3.db-*
redka.db
redka.db-shm
redka.db-wal
redka.db-*
backend/aiops-server
backend/aiops
backend/aiops-*
backend/aiops.bak.*
backend/.aiops.args
backend/data/
# Config(根目录 config.yaml 由 run.sh 本地自动生成)
config.yaml
config.local.yaml
*.local
.env
# IDE
.idea/
.vscode/
*.swp
*.swo
*~
# OS
.DS_Store
Thumbs.db
# Logs
*.log
logs/
# Database
*.db
*.sqlite
backend/data/
# Docker
docker-data/
# PID files
*.pid
agent/aiops-agent
agent/bin/
# embed 模式临时目录(前端构建产物,编译后清理)
# 保留 .gitkeep 占位文件确保 go:embed all:static 在全新 clone 后可编译
backend/static/*
!backend/static/.gitkeep
backend/cmd/static/
# Hermes agent config (personal, not project)
.hermes/
# kubectl 二进制(预打包进镜像,避免 Docker build 时网络下载)
backend/kubectl
opsxsql/
test_monitoring_es.py
aiops-hot