mirror of https://github.com/aminya/setup-cpp
fix: print choco and pip install stdout
This commit is contained in:
parent
39a166b787
commit
79da94e09e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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`
|
||||||
|
|
|
@ -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") {
|
||||||
|
|
Loading…
Reference in New Issue