From fb3a0a97fac846cb3395265a3087ab94ad3ca2a0 Mon Sep 17 00:00:00 2001 From: Kevin Stillhammer Date: Thu, 17 Apr 2025 21:02:21 +0200 Subject: [PATCH] log info on venv activation (#375) Make sure we get more info by default instead of just exiting with 1 Contributes to: #374 --- dist/setup/index.js | 5 +---- src/setup-uv.ts | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index ebd1bfc..ad08a6c 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -124394,12 +124394,9 @@ async function setupPython() { if (inputs_1.pythonVersion !== "") { core.exportVariable("UV_PYTHON", inputs_1.pythonVersion); core.info(`Set UV_PYTHON to ${inputs_1.pythonVersion}`); - const options = { - silent: !core.isDebug(), - }; const execArgs = ["venv", "--python", inputs_1.pythonVersion]; core.info("Activating python venv..."); - await exec.exec("uv", execArgs, options); + await exec.exec("uv", execArgs); let venvBinPath = ".venv/bin"; if (process.platform === "win32") { venvBinPath = ".venv/Scripts"; diff --git a/src/setup-uv.ts b/src/setup-uv.ts index beed547..af8cceb 100644 --- a/src/setup-uv.ts +++ b/src/setup-uv.ts @@ -167,13 +167,10 @@ async function setupPython(): Promise { if (pythonVersion !== "") { core.exportVariable("UV_PYTHON", pythonVersion); core.info(`Set UV_PYTHON to ${pythonVersion}`); - const options: exec.ExecOptions = { - silent: !core.isDebug(), - }; const execArgs = ["venv", "--python", pythonVersion]; core.info("Activating python venv..."); - await exec.exec("uv", execArgs, options); + await exec.exec("uv", execArgs); let venvBinPath = ".venv/bin"; if (process.platform === "win32") {