From c7eae6235fc791d5454f26d57c313096a34cfd1d Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Fri, 13 Jun 2025 16:40:00 +0200 Subject: [PATCH] fix: cargo metadata warning handled as errors and stopping process --- src/services/functions/build/build.rust.services.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/functions/build/build.rust.services.ts b/src/services/functions/build/build.rust.services.ts index ce26a7be..f3c5b60f 100644 --- a/src/services/functions/build/build.rust.services.ts +++ b/src/services/functions/build/build.rust.services.ts @@ -266,7 +266,8 @@ const extractBuildType = async ({path}: Pick = {}): Promise< await spawn({ command: 'cargo', args: ['metadata', '--format-version', '1', ...manifestArgs], - stdout: (o) => (output += o) + stdout: (o) => (output += o), + silentErrors: true }); const metadata = JSON.parse(output);