抓大鹅B4+B5进行中
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-05-01 01:02:19 +08:00
parent bcb99e17b5
commit 38b5db553e
563 changed files with 12483 additions and 4421 deletions

View File

@@ -171,12 +171,12 @@ function run(command, commandArgs) {
return;
}
if (output.includes('Could not format generated files')) {
reject(new Error(`${command} 生成后格式化失败。`));
return;
}
if (code === 0) {
if (output.includes('Could not format generated files')) {
// 中文注释Windows 下 Rust 绑定文件很多时SpacetimeDB CLI 可能已生成成功但 rustfmt 启动失败。
// 这里保留后续文件数量校验,避免把格式化警告误判成绑定生成失败。
console.warn(`[spacetime:generate] ${command} 生成后格式化失败,继续校验并同步生成文件。`);
}
resolve();
return;
}