fix: print choco and pip install stdout

This commit is contained in:
Amin Yahyaabadi 2022-02-01 20:54:01 -08:00
parent 39a166b787
commit 79da94e09e
4 changed files with 11 additions and 5 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -23,9 +23,13 @@ export function setupChocoPack(name: string, version?: string, args: string[] =
env.PATH = PATH env.PATH = PATH
if (version !== undefined && version !== "") { if (version !== undefined && version !== "") {
execa.sync("choco", ["install", "-y", name, `--version=${version}`, ...args], { env, extendEnv: false }) execa.sync("choco", ["install", "-y", name, `--version=${version}`, ...args], {
env,
extendEnv: false,
stdio: "inherit",
})
} else { } else {
execa.sync("choco", ["install", "-y", name, ...args], { env, extendEnv: false }) execa.sync("choco", ["install", "-y", name, ...args], { env, extendEnv: false, stdio: "inherit" })
} }
const binDir = `${process.env.ChocolateyInstall ?? "C:/ProgramData/chocolatey"}/bin` const binDir = `${process.env.ChocolateyInstall ?? "C:/ProgramData/chocolatey"}/bin`

View File

@ -26,7 +26,9 @@ export async function setupPipPack(name: string, version?: string) {
} }
} }
execa.sync(pip, ["install", version !== undefined && version !== "" ? `${name}==${version}` : name]) execa.sync(pip, ["install", version !== undefined && version !== "" ? `${name}==${version}` : name], {
stdio: "inherit",
})
if (binDir === undefined) { if (binDir === undefined) {
if (process.platform === "linux") { if (process.platform === "linux") {