fix(cli): quote toml path (#1410)

Fixes issue when tomlPath has a space in it
This commit is contained in:
Jarod Brennfleck 2022-12-29 19:24:28 +11:00 committed by GitHub
parent 76a16be0eb
commit c58972ee0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,