From ff4b8fbf1a8926c12732883b534ca8ca4671359e Mon Sep 17 00:00:00 2001 From: samypr100 <3933065+samypr100@users.noreply.github.com> Date: Sat, 4 Jan 2025 13:52:44 -0500 Subject: [PATCH] fix: make sure VIRTUAL_ENV is an absolute path --- dist/setup/index.js | 2 +- src/setup-uv.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index fc18a0b..0a3bf68 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -99397,7 +99397,7 @@ function setupPython() { venvBinPath = ".venv/Scripts"; } core.addPath(venvBinPath); - core.exportVariable("VIRTUAL_ENV", ".venv"); + core.exportVariable("VIRTUAL_ENV", path.resolve(".venv")); } }); } diff --git a/src/setup-uv.ts b/src/setup-uv.ts index 13a90b5..408b005 100644 --- a/src/setup-uv.ts +++ b/src/setup-uv.ts @@ -143,7 +143,7 @@ async function setupPython(): Promise { venvBinPath = ".venv/Scripts"; } core.addPath(venvBinPath); - core.exportVariable("VIRTUAL_ENV", ".venv"); + core.exportVariable("VIRTUAL_ENV", path.resolve(".venv")); } }