mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-04-14 14:04:55 +00:00
Use --force when pruning cache (#611)
To prevent waiting forever on other running uv processes
This commit is contained in:
parent
3deccc0075
commit
f610be5ff9
7 changed files with 817 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue