mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-04-10 04:14:18 +00:00
fix: use --clear to create venv (#761)
Fixes: https://github.com/astral-sh/setup-uv/issues/758
This commit is contained in:
parent
b6b8e2cd6a
commit
78cebeceac
2 changed files with 14 additions and 2 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue