mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-06-16 20:31:12 +00:00
parent
b3d7ca7ac0
commit
e3d2ea5ff3
4 changed files with 10 additions and 16 deletions
4
src/cache/restore-cache.ts
vendored
4
src/cache/restore-cache.ts
vendored
|
@ -4,6 +4,7 @@ import {
|
|||
cacheDependencyGlob,
|
||||
cacheLocalPath,
|
||||
cacheSuffix,
|
||||
pruneCache,
|
||||
pythonVersion as pythonVersionInput,
|
||||
workingDirectory,
|
||||
} from "../utils/inputs";
|
||||
|
@ -55,7 +56,8 @@ async function computeKeys(): Promise<string> {
|
|||
const suffix = cacheSuffix ? `-${cacheSuffix}` : "";
|
||||
const pythonVersion = await getPythonVersion();
|
||||
const platform = await getPlatform();
|
||||
return `setup-uv-${CACHE_VERSION}-${getArch()}-${platform}-${pythonVersion}${cacheDependencyPathHash}${suffix}`;
|
||||
const pruned = pruneCache ? "-pruned" : "";
|
||||
return `setup-uv-${CACHE_VERSION}-${getArch()}-${platform}-${pythonVersion}${pruned}${cacheDependencyPathHash}${suffix}`;
|
||||
}
|
||||
|
||||
async function getPythonVersion(): Promise<string> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue