Merge branch 'main' into v-dmshib/add-warning-for-cache-empty-version

This commit is contained in:
Dmitry Shibanov 2023-04-05 11:28:43 +02:00
commit 538b0b6021
3 changed files with 32 additions and 8 deletions

View file

@ -163,6 +163,12 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
fileHash,
cachePaths
) => {
restoreCacheSpy.mockImplementation(
(cachePaths: string[], primaryKey: string, restoreKey?: string) => {
return primaryKey.includes(fileHash) ? primaryKey : '';
}
);
const cacheDistributor = getCacheDistributor(
packageManager,
pythonVersion,