mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-04-18 22:47:05 -05:00
Create no-dependency-glob cache key
This commit is contained in:
parent
3e3aecd6b6
commit
4b677dce24
3 changed files with 8 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue