fix: use --clear to create venv

This commit is contained in:
Kevin Stillhammer 2026-02-06 10:43:31 +01:00
parent b6b8e2cd6a
commit 5f8bfe19d8
No known key found for this signature in database
2 changed files with 14 additions and 2 deletions

View file

@ -272,7 +272,13 @@ async function activateEnvironment(): Promise<void> {
}
core.info(`Creating and activating python venv at ${venvPath}...`);
await exec.exec("uv", ["venv", venvPath, "--directory", workingDirectory]);
await exec.exec("uv", [
"venv",
venvPath,
"--directory",
workingDirectory,
"--clear",
]);
let venvBinPath = `${venvPath}${path.sep}bin`;
if (process.platform === "win32") {