mirror of https://github.com/actions/setup-python
Compare commits
2 Commits
499a36d8b6
...
e72319d27a
Author | SHA1 | Date |
---|---|---|
Sam Gross | e72319d27a | |
aparnajyothi-y | 55aad42e46 |
|
@ -81165,7 +81165,7 @@ function saveCache(packageManager) {
|
|||
const cachePaths = JSON.parse(cachePathState);
|
||||
core.debug(`paths for caching are ${cachePaths.join(', ')}`);
|
||||
if (!isCacheDirectoryExists(cachePaths)) {
|
||||
throw new Error(`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(', ')}`);
|
||||
throw new Error(`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(', ')}. This likely indicates that there are no dependencies to cache. Consider removing the cache step if it is not needed.`);
|
||||
}
|
||||
const primaryKey = core.getState(cache_distributor_1.State.STATE_CACHE_PRIMARY_KEY);
|
||||
const matchedKey = core.getState(cache_distributor_1.State.CACHE_MATCHED_KEY);
|
||||
|
|
|
@ -41,7 +41,7 @@ async function saveCache(packageManager: string) {
|
|||
throw new Error(
|
||||
`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(
|
||||
', '
|
||||
)}`
|
||||
)}. This likely indicates that there are no dependencies to cache. Consider removing the cache step if it is not needed.`
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue