From 7768fe6bf07695625e41df8b6253deeb006301d9 Mon Sep 17 00:00:00 2001 From: samypr100 <3933065+samypr100@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:34:15 -0400 Subject: [PATCH] fix: make sure VIRTUAL_ENV is an absolute path (#224) Closes https://github.com/astral-sh/setup-uv/issues/219 --- 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")); } }