From 9a3f09c9830bdca7f9de375fa8ff67cd90d2277f Mon Sep 17 00:00:00 2001 From: MEKXH <2408131017@qq.com> Date: Wed, 4 Feb 2026 19:08:11 +0800 Subject: [PATCH] docs: update Air installation command from cosmtrek/air to air-verse/air --- docs/开发指南.md | 2 +- docs/快速开发模式说明.md | 2 +- scripts/check-env.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/开发指南.md b/docs/开发指南.md index 160938455..70c5e9063 100644 --- a/docs/开发指南.md +++ b/docs/开发指南.md @@ -116,7 +116,7 @@ make dev-frontend # 修改前端代码自动热重载(无需重启) ### 1. 安装 Air ```bash -go install github.com/cosmtrek/air@latest +go install github.com/air-verse/air@latest ``` ### 2. 创建配置文件 diff --git a/docs/快速开发模式说明.md b/docs/快速开发模式说明.md index 70a4f03cc..7c4f7d6ce 100644 --- a/docs/快速开发模式说明.md +++ b/docs/快速开发模式说明.md @@ -45,7 +45,7 @@ make dev-frontend ```bash # 安装 Air -go install github.com/cosmtrek/air@latest +go install github.com/air-verse/air@latest # 确保在 PATH 中 export PATH=$PATH:$(go env GOPATH)/bin diff --git a/scripts/check-env.sh b/scripts/check-env.sh index 8a4b163f1..fe2449ec7 100755 --- a/scripts/check-env.sh +++ b/scripts/check-env.sh @@ -127,7 +127,7 @@ if command -v air &> /dev/null; then log_success "Air 已安装(支持热重载)" else log_warning "Air 未安装(可选,用于热重载)" - log_info "安装命令: go install github.com/cosmtrek/air@latest" + log_info "安装命令: go install github.com/air-verse/air@latest" fi # 检查 npm