Skip to content

Commit 79da94e

Browse files
committed
fix: print choco and pip install stdout
1 parent 39a166b commit 79da94e

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/setup/setupChocoPack.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ export function setupChocoPack(name: string, version?: string, args: string[] =
2323
env.PATH = PATH
2424

2525
if (version !== undefined && version !== "") {
26-
execa.sync("choco", ["install", "-y", name, `--version=${version}`, ...args], { env, extendEnv: false })
26+
execa.sync("choco", ["install", "-y", name, `--version=${version}`, ...args], {
27+
env,
28+
extendEnv: false,
29+
stdio: "inherit",
30+
})
2731
} else {
28-
execa.sync("choco", ["install", "-y", name, ...args], { env, extendEnv: false })
32+
execa.sync("choco", ["install", "-y", name, ...args], { env, extendEnv: false, stdio: "inherit" })
2933
}
3034

3135
const binDir = `${process.env.ChocolateyInstall ?? "C:/ProgramData/chocolatey"}/bin`

src/utils/setup/setupPipPack.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export async function setupPipPack(name: string, version?: string) {
2626
}
2727
}
2828

29-
execa.sync(pip, ["install", version !== undefined && version !== "" ? `${name}==${version}` : name])
29+
execa.sync(pip, ["install", version !== undefined && version !== "" ? `${name}==${version}` : name], {
30+
stdio: "inherit",
31+
})
3032

3133
if (binDir === undefined) {
3234
if (process.platform === "linux") {

0 commit comments

Comments
 (0)