Respect UV_NO_MODIFY_PATH (#603)
Some checks failed
CodeQL / Analyze (TypeScript) (push) Failing after 2s
Release Drafter / ✏️ Draft release (push) Has been cancelled

Fixes: #519
This commit is contained in:
Kevin Stillhammer
2025-10-02 17:54:15 +02:00
committed by GitHub
parent f9c6974d8b
commit f2859da213
7 changed files with 96 additions and 12 deletions

View File

@@ -6,6 +6,7 @@ import {
STATE_CACHE_KEY,
STATE_CACHE_MATCHED_KEY,
} from "./cache/restore-cache";
import { STATE_UV_PATH } from "./utils/constants";
import {
cacheLocalPath,
enableCache,
@@ -91,7 +92,8 @@ async function pruneCache(): Promise<void> {
const execArgs = ["cache", "prune", "--ci"];
core.info("Pruning cache...");
await exec.exec("uv", execArgs, options);
const uvPath = core.getState(STATE_UV_PATH);
await exec.exec(uvPath, execArgs, options);
}
run();