From ce95a836a67a0d562f18f0afc52c304fc09ef238 Mon Sep 17 00:00:00 2001 From: Jarod Brennfleck Date: Mon, 26 Dec 2022 08:50:54 +1100 Subject: [PATCH] Quote toml path Fixes issue when tomlPath has a space in it --- cli/src/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/build.ts b/cli/src/build.ts index 4bb814d8b6..9adc46e740 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -211,7 +211,7 @@ export class BuildCommand extends Command { debug('Start parse toml') cargoMetadata = JSON.parse( execSync( - `cargo metadata --format-version 1 --manifest-path ${cargoTomlPath}`, + `cargo metadata --format-version 1 --manifest-path "${cargoTomlPath}"`, { stdio: 'pipe', maxBuffer: 1024 * 1024 * 10,