mirror of
https://github.com/actions/setup-go.git
synced 2024-12-29 06:04:46 -05:00
build
This commit is contained in:
parent
4c32251b06
commit
be45b2722d
3 changed files with 836 additions and 830 deletions
3
dist/cache-save/index.js
vendored
3
dist/cache-save/index.js
vendored
|
@ -60001,6 +60001,9 @@ const cachePackages = () => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
const cachePaths = yield cache_utils_1.getCacheDirectoryPath(packageManagerInfo);
|
const cachePaths = yield cache_utils_1.getCacheDirectoryPath(packageManagerInfo);
|
||||||
const nonExistingPaths = cachePaths.filter(cachePath => !fs_1.default.existsSync(cachePath));
|
const nonExistingPaths = cachePaths.filter(cachePath => !fs_1.default.existsSync(cachePath));
|
||||||
if (nonExistingPaths.length === cachePaths.length) {
|
if (nonExistingPaths.length === cachePaths.length) {
|
||||||
|
core.warning(`There are no cache folders on the disk`);
|
||||||
|
logWarning(`There are no cache folders on the disk`);
|
||||||
|
return;
|
||||||
throw new Error(`There are no cache folders on the disk`);
|
throw new Error(`There are no cache folders on the disk`);
|
||||||
}
|
}
|
||||||
if (nonExistingPaths.length) {
|
if (nonExistingPaths.length) {
|
||||||
|
|
|
@ -40,6 +40,9 @@ const cachePackages = async () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (nonExistingPaths.length === cachePaths.length) {
|
if (nonExistingPaths.length === cachePaths.length) {
|
||||||
|
core.warning(`There are no cache folders on the disk`);
|
||||||
|
logWarning(`There are no cache folders on the disk`)
|
||||||
|
return;
|
||||||
throw new Error(`There are no cache folders on the disk`);
|
throw new Error(`There are no cache folders on the disk`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue