mirror of
https://github.com/actions/setup-python.git
synced 2025-08-26 18:54:19 +00:00
update error to warning when no dependency to cache
This commit is contained in:
parent
9322b3ca74
commit
ffb09d6b33
2
dist/cache-save/index.js
vendored
2
dist/cache-save/index.js
vendored
@ -87883,7 +87883,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(', ')}. This likely indicates that there are no dependencies to cache. Consider removing the cache step if it is not needed.`);
|
||||
core.warning(`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);
|
||||
|
@ -38,7 +38,7 @@ async function saveCache(packageManager: string) {
|
||||
core.debug(`paths for caching are ${cachePaths.join(', ')}`);
|
||||
|
||||
if (!isCacheDirectoryExists(cachePaths)) {
|
||||
throw new Error(
|
||||
core.warning(
|
||||
`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…
x
Reference in New Issue
Block a user