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.",