mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-01-31 22:41:27 +08:00
Create no-dependency-glob cache key
This commit is contained in:
parent
3e3aecd6b6
commit
4b677dce24
3
dist/save-cache/index.js
generated
vendored
3
dist/save-cache/index.js
generated
vendored
@ -82827,6 +82827,9 @@ function computeKeys(version) {
|
||||
throw new Error(`No file in ${process.cwd()} matched to [${inputs_1.cacheDependencyGlob}], make sure you have checked out the target repository`);
|
||||
}
|
||||
}
|
||||
else {
|
||||
cacheDependencyPathHash += 'no-dependency-glob';
|
||||
}
|
||||
const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : '';
|
||||
return `setup-uv-${CACHE_VERSION}-${(0, platforms_1.getArch)()}-${(0, platforms_1.getPlatform)()}-${version}${cacheDependencyPathHash}${suffix}`;
|
||||
});
|
||||
|
3
dist/setup/index.js
generated
vendored
3
dist/setup/index.js
generated
vendored
@ -83724,6 +83724,9 @@ function computeKeys(version) {
|
||||
throw new Error(`No file in ${process.cwd()} matched to [${inputs_1.cacheDependencyGlob}], make sure you have checked out the target repository`);
|
||||
}
|
||||
}
|
||||
else {
|
||||
cacheDependencyPathHash += 'no-dependency-glob';
|
||||
}
|
||||
const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : '';
|
||||
return `setup-uv-${CACHE_VERSION}-${(0, platforms_1.getArch)()}-${(0, platforms_1.getPlatform)()}-${version}${cacheDependencyPathHash}${suffix}`;
|
||||
});
|
||||
|
2
src/cache/restore-cache.ts
vendored
2
src/cache/restore-cache.ts
vendored
@ -40,6 +40,8 @@ async function computeKeys(version: string): Promise<string> {
|
||||
`No file in ${process.cwd()} matched to [${cacheDependencyGlob}], make sure you have checked out the target repository`
|
||||
)
|
||||
}
|
||||
} else {
|
||||
cacheDependencyPathHash += 'no-dependency-glob'
|
||||
}
|
||||
const suffix = cacheSuffix ? `-${cacheSuffix}` : ''
|
||||
return `setup-uv-${CACHE_VERSION}-${getArch()}-${getPlatform()}-${version}${cacheDependencyPathHash}${suffix}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user