mirror of
https://github.com/actions/cache.git
synced 2025-04-22 03:56:45 +00:00
updated with 2.0
This commit is contained in:
parent
bc53ec57f3
commit
7e4d931f67
4 changed files with 16 additions and 25 deletions
9
dist/restore/index.js
vendored
9
dist/restore/index.js
vendored
|
@ -1199,10 +1199,6 @@ function assertDefined(name, value) {
|
|||
return value;
|
||||
}
|
||||
exports.assertDefined = assertDefined;
|
||||
function isFeatureAvailable() {
|
||||
return !!process.env['ACTIONS_CACHE_URL'];
|
||||
}
|
||||
exports.isFeatureAvailable = isFeatureAvailable;
|
||||
//# sourceMappingURL=cacheUtils.js.map
|
||||
|
||||
/***/ }),
|
||||
|
@ -5520,7 +5516,8 @@ function downloadCacheStorageSDK(archiveLocation, archivePath, options) {
|
|||
//
|
||||
// If the file exceeds the buffer maximum length (~1 GB on 32-bit systems and ~2 GB
|
||||
// on 64-bit systems), split the download into multiple segments
|
||||
const maxSegmentSize = buffer.constants.MAX_LENGTH;
|
||||
// ~2 GB = 2147483647, beyond this, we start getting out of range error. So, capping it accordingly.
|
||||
const maxSegmentSize = Math.min(2147483647, buffer.constants.MAX_LENGTH);
|
||||
const downloadProgress = new DownloadProgress(contentLength);
|
||||
const fd = fs.openSync(archivePath, 'w');
|
||||
try {
|
||||
|
@ -46460,7 +46457,7 @@ function checkKey(key) {
|
|||
* @returns boolean return true if Actions cache service feature is available, otherwise false
|
||||
*/
|
||||
function isFeatureAvailable() {
|
||||
return utils.isFeatureAvailable();
|
||||
return !!process.env['ACTIONS_CACHE_URL'];
|
||||
}
|
||||
exports.isFeatureAvailable = isFeatureAvailable;
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue