mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-12-23 11:01:03 +00:00
committed by
GitHub
parent
bd1f875aba
commit
d18bcc753a
4
src/cache/restore-cache.ts
vendored
4
src/cache/restore-cache.ts
vendored
@@ -7,8 +7,8 @@ import {
|
||||
cacheLocalPath,
|
||||
cachePython,
|
||||
cacheSuffix,
|
||||
getUvPythonDir,
|
||||
pruneCache,
|
||||
pythonDir,
|
||||
pythonVersion as pythonVersionInput,
|
||||
restoreCache as shouldRestoreCache,
|
||||
workingDirectory,
|
||||
@@ -34,7 +34,7 @@ export async function restoreCache(): Promise<void> {
|
||||
);
|
||||
const cachePaths = [cacheLocalPath];
|
||||
if (cachePython) {
|
||||
cachePaths.push(await getUvPythonDir());
|
||||
cachePaths.push(pythonDir);
|
||||
}
|
||||
try {
|
||||
matchedKey = await cache.restoreCache(cachePaths, cacheKey);
|
||||
|
||||
Reference in New Issue
Block a user