зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1594520 - Change directory before running mach in .vscode/tasks.json on Windows. r=jya
The build is quite fragile if the path to mach is not precisely formatted. Work around this by cd-ing to the appropriate directory and then calling 'mach' with a relative path. This mimics a normal user workflow in mozilla-build. Differential Revision: https://phabricator.services.mozilla.com/D52968 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
3eef8ed573
Коммит
55b1cc6058
|
@ -8,8 +8,12 @@
|
|||
"windows": {
|
||||
"command": "/mozilla-build/start-shell.bat",
|
||||
"args": [
|
||||
"cd",
|
||||
// Use PowerShell to mangle path for mozilla-build environment
|
||||
{"value": "$('${workspaceFolder}\\mach' -replace '\\\\','/')", "quoting": "weak"},
|
||||
{"value": "$('${workspaceFolder}' -replace '\\\\','/')", "quoting": "weak"},
|
||||
"';'",
|
||||
|
||||
"mach",
|
||||
"--log-no-times"
|
||||
]
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче