From 7a20b20b2dfe82fca4f161b4df8fcbb6cd38e9a6 Mon Sep 17 00:00:00 2001 From: Deng Liu Date: Sat, 5 Dec 2026 00:02:28 -0800 Subject: [PATCH] fix(dogfood): probe cargo-zigbuild with a supported argument (#8177) The local dogfood cross-build (#8124) checked for cargo-zigbuild with `cargo zigbuild --version`, which cargo-zigbuild 0.24.1 rejects, so `dogfood:servers` / `dogfood:all ` reported the tool missing even when it was installed. The probe now runs `cargo zigbuild --help`. Co-authored-by: dengliu <5108773+dengliu@users.noreply.github.com> --- scripts/dogfood.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dogfood.ts b/scripts/dogfood.ts index ca47283e2d..b8e51b2e12 100644 --- a/scripts/dogfood.ts +++ b/scripts/dogfood.ts @@ -324,7 +324,7 @@ export function buildDogfoodServer(root: string, arch: DogfoodServerArch): strin /** Adds the musl target on first use instead of in every contributor's setup. Needs cargo-zigbuild and Zig. */ function ensureCrossTarget(root: string, target: string) { - const zigbuild = spawnSync("cargo", ["zigbuild", "--version"], { cwd: root, encoding: "utf8" }); + const zigbuild = spawnSync("cargo", ["zigbuild", "--help"], { cwd: root, encoding: "utf8" }); if (zigbuild.status !== 0) { throw new Error( "cargo-zigbuild and Zig are needed to cross-build openidea-server: `mise run dogfood:servers` installs them, or install both yourself.",