fix(ci): 修复 CI 构建失败 - 使用 git 依赖替代本地路径

- 将 aster-models 依赖从本地路径改为 git 依赖
- 使用 tag v0.12.0 从 GitHub 仓库获取
- 注释掉 .cargo/config.toml 中的本地 patch 配置
- 确保 CI 环境可以正确构建项目

修复错误: failed to read aster-rust/crates/aster-models/Cargo.toml
This commit is contained in:
coso
2026-02-17 12:47:27 +08:00
parent 7851c34bed
commit 904ae548b3
2 changed files with 3 additions and 6 deletions
+1 -4
View File
@@ -295,6 +295,7 @@ dependencies = [
[[package]]
name = "aster-models"
version = "0.12.0"
source = "git+https://github.com/astercloud/aster-rust?tag=v0.12.0#f6c1ad342eb58accb61524985fa78ea7f4b8be2b"
dependencies = [
"serde",
"serde_json",
@@ -12124,7 +12125,3 @@ dependencies = [
"syn 2.0.114",
"winnow 0.7.14",
]
[[patch.unused]]
name = "aster-core"
version = "0.12.0"
+2 -2
View File
@@ -121,8 +121,8 @@ enigo = "0.3"
# CI/CD: git = "https://github.com/astercloud/aster-rust", tag = "v0.11.0"
# aster = { path = "../../../astercloud/aster-rust/crates/aster" }
aster = { git = "https://github.com/astercloud/aster-rust", tag = "v0.11.0" }
# CI/CD: aster-models = { git = "https://github.com/astercloud/aster-rust", tag = "v0.12.0" }
aster-models = { path = "../../../astercloud/aster-rust/crates/aster-models" }
# 本地开发: aster-models = { path = "../../../astercloud/aster-rust/crates/aster-models" }
aster-models = { git = "https://github.com/astercloud/aster-rust", tag = "v0.12.0" }
# MCP (Model Context Protocol)
rmcp = { version = "0.12.0", features = ["client", "transport-io", "transport-child-process"] }