5
0
mirror of https://github.com/astral-sh/setup-uv.git synced 2025-12-21 11:01:40 +00:00

Use --force when pruning cache (#611)

To prevent waiting forever on other running uv processes
This commit is contained in:
Kevin Stillhammer
2025-10-07 09:42:14 +02:00
committed by GitHub
parent 3deccc0075
commit f610be5ff9
7 changed files with 817 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ import {
resolveVersion,
tryGetFromToolCache,
} from "./download/download-version";
import { STATE_UV_PATH } from "./utils/constants";
import { STATE_UV_PATH, STATE_UV_VERSION } from "./utils/constants";
import {
activateEnvironment as activateEnvironmentInput,
addProblemMatchers,
@@ -56,6 +56,7 @@ async function run(): Promise<void> {
setCacheDir(cacheLocalPath);
core.setOutput("uv-version", setupResult.version);
core.saveState(STATE_UV_VERSION, setupResult.version);
core.info(`Successfully installed uv version ${setupResult.version}`);
if (enableCache) {