mirror of
				https://gitea.com/actions/cache.git
				synced 2025-11-02 07:47:08 +00:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			v3_fix
			...
			2gb_issue_
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					b13b69db36 | 
							
								
								
									
										3
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							@@ -5519,8 +5519,7 @@ 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
 | 
			
		||||
            // ~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 maxSegmentSize = buffer.constants.MAX_LENGTH;
 | 
			
		||||
            const downloadProgress = new DownloadProgress(contentLength);
 | 
			
		||||
            const fd = fs.openSync(archivePath, 'w');
 | 
			
		||||
            try {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							@@ -5519,8 +5519,7 @@ 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
 | 
			
		||||
            // ~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 maxSegmentSize = buffer.constants.MAX_LENGTH;
 | 
			
		||||
            const downloadProgress = new DownloadProgress(contentLength);
 | 
			
		||||
            const fd = fs.openSync(archivePath, 'w');
 | 
			
		||||
            try {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7316
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										7316
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -23,7 +23,7 @@
 | 
			
		||||
  "author": "GitHub",
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@actions/cache": "file:actions-cache-1.0.10.tgz",
 | 
			
		||||
    "@actions/cache": "file:../toolkit/packages/cache/actions-cache-1.0.10.tgz",
 | 
			
		||||
    "@actions/core": "^1.2.6",
 | 
			
		||||
    "@actions/exec": "^1.1.1",
 | 
			
		||||
    "@actions/io": "^1.1.2"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user