mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-11-18 22:01:11 +08:00
Update downloadUtils.ts
This commit is contained in:
parent
862c4e9db4
commit
087191dabd
2
packages/cache/src/internal/downloadUtils.ts
vendored
2
packages/cache/src/internal/downloadUtils.ts
vendored
@ -241,7 +241,7 @@ export async function downloadCacheStorageSDK(
|
||||
// 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
|
||||
// ~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)buffer.constants.MAX_LENGTH
|
||||
const maxSegmentSize = Math.min(2147483647, buffer.constants.MAX_LENGTH)
|
||||
const downloadProgress = new DownloadProgress(contentLength)
|
||||
|
||||
const fd = fs.openSync(archivePath, 'w')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user