1
0
mirror of https://github.com/actions/setup-python synced 2024-11-30 21:22:28 +08:00

Compare commits

...

10 Commits

Author SHA1 Message Date
aparnajyothi-y
034f19c046
Merge b9a674e48d into 19dfb7b659 2024-10-07 12:30:25 -04:00
Aparna Jyothi
b9a674e48d updated error message 2024-09-20 15:09:44 +05:30
aparnajyothi-y
240e4e247f
Merge branch 'actions:main' into main 2024-09-18 15:29:18 +05:30
aparnajyothi-y
0f346eed5f
Update e2e-cache.yml 2024-08-12 16:54:34 +05:30
aparnajyothi-y
17b70d0365
Update basic-validation.yml 2024-08-12 16:54:05 +05:30
Aparna Jyothi
5227ed36dc pyinstaller-update 2024-08-12 16:49:46 +05:30
Aparna Jyothi
ee13df0216 Pyinstaller upgrade to 5.13.1 2024-08-12 16:28:21 +05:30
aparnajyothi-y
b726deaef4
Merge branch 'actions:main' into main 2024-08-09 16:00:01 +05:30
aparnajyothi-y
4b29726db3
Update basic-validation.yml 2024-07-31 17:52:20 +05:30
aparnajyothi-y
dbaa5b6b55
Update e2e-cache.yml 2024-07-31 17:51:50 +05:30
4 changed files with 10 additions and 6 deletions

View File

@ -81041,7 +81041,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);
@ -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(`No file in ${process.cwd()} matched to [${cachePaths.join(', ')}], make sure you have checked out the target repository. No cache paths were identified for ${packageManager} with cache-dependency-path. This likely indicates no dependencies to cache. Consider removing the cache step if it's 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);

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);

View File

@ -32,7 +32,11 @@ abstract class CacheDistributor {
.join(',')} or ${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`
`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`
);
}

View File

@ -39,9 +39,9 @@ async function saveCache(packageManager: string) {
if (!isCacheDirectoryExists(cachePaths)) {
throw new Error(
`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(
`No file in ${process.cwd()} matched to [${cachePaths.join(
', '
)}`
)}], make sure you have checked out the target repository. No cache paths were identified for ${packageManager} with cache-dependency-path. This likely indicates no dependencies to cache. Consider removing the cache step if it's not needed.`
);
}