From 904ae548b349ababf1d0d6d617445c80f766bca9 Mon Sep 17 00:00:00 2001 From: coso Date: Tue, 17 Feb 2026 12:47:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8D=20CI=20=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E5=A4=B1=E8=B4=A5=20-=20=E4=BD=BF=E7=94=A8=20git=20?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=9B=BF=E4=BB=A3=E6=9C=AC=E5=9C=B0=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 aster-models 依赖从本地路径改为 git 依赖 - 使用 tag v0.12.0 从 GitHub 仓库获取 - 注释掉 .cargo/config.toml 中的本地 patch 配置 - 确保 CI 环境可以正确构建项目 修复错误: failed to read aster-rust/crates/aster-models/Cargo.toml --- src-tauri/Cargo.lock | 5 +---- src-tauri/Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 7d8d4248f..7ada76db7 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -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" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 35d2d0aef..8aa3d7251 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -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"] }