From bfbcb1dd02a3a4e1beae884fceeb6e534ff0db86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 2 Oct 2026 22:29:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=EF=BC=9A=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E7=94=9F=E6=88=90=E7=BB=91=E5=AE=9A=E6=A0=A1=E9=AA=8C=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E9=87=8C=E7=BC=BA=E5=B0=91=E7=9A=84=20cargo=20?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - shared-contracts 提示补上 --manifest-path server-rs/Cargo.toml:仓库根没有 Cargo.toml,照抄提示会直接失败 - 两条提示都补上 --locked,与实际执行的 cargo 命令保持一致 --- scripts/check-generated-bindings.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-generated-bindings.mjs b/scripts/check-generated-bindings.mjs index c9b15220a..02bc1675e 100644 --- a/scripts/check-generated-bindings.mjs +++ b/scripts/check-generated-bindings.mjs @@ -52,7 +52,7 @@ const targets = [ 'export_bindings', ], formatDirs: [], - hint: 'cargo test -p shared-contracts --features ts-bindings export_bindings', + hint: 'cargo test --locked -p shared-contracts --features ts-bindings --manifest-path server-rs/Cargo.toml export_bindings', }, { label: 'ai-game-creator-shell', @@ -67,7 +67,7 @@ const targets = [ // ts-rs 落盘后按仓库格式跑一遍 prettier,比较的才是"提交时应有的内容" // (ui-editor 的绑定被 `.prettierignore` 忽略,不在里面)。 formatDirs: [AGC_CHAT_DIR, AGC_SERVICES_DIR], - hint: 'cargo test --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml export_bindings && npx prettier --write apps/ai-game-creator-shell/src/view/project-development/chat/generated apps/ai-game-creator-shell/src/services/generated', + hint: 'cargo test --locked --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml export_bindings && npx prettier --write apps/ai-game-creator-shell/src/view/project-development/chat/generated apps/ai-game-creator-shell/src/services/generated', }, ];