Create no-dependency-glob cache key

This commit is contained in:
Kevin Stillhammer 2024-08-24 09:23:57 +02:00
parent 3e3aecd6b6
commit 4b677dce24
No known key found for this signature in database
3 changed files with 8 additions and 0 deletions

3
dist/save-cache/index.js generated vendored
View File

@ -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
View File

@ -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}`;
});

View File

@ -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}`