1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-16 07:54:09 +02:00

updated error message

This commit is contained in:
Aparna Jyothi 2024-09-20 15:09:44 +05:30
parent 240e4e247f
commit b9a674e48d
4 changed files with 10 additions and 6 deletions

2
dist/setup/index.js vendored
View file

@ -90243,7 +90243,7 @@ class CacheDistributor {
.split('\n')
.join(',')} or ${constants_1.CACHE_DEPENDENCY_BACKUP_PATH}`
: this.cacheDependencyPath.split('\n').join(',');
throw new Error(`No file in ${process.cwd()} matched to [${file}], make sure you have checked out the target repository`);
throw new Error(`No file in ${process.cwd()} matched to [${file}], make sure you have checked out the target repository. No cache paths were identified for ${this.packageManager} with cache-dependency-path = ${this.cacheDependencyPath}. This likely indicates no dependencies to cache. Consider removing the cache step if it's not needed`);
}
const cachePath = yield this.getCacheGlobalDirectories();
core.saveState(State.CACHE_PATHS, cachePath);