mirror of
				https://gitea.com/actions/cache.git
				synced 2025-10-31 07:47:07 +00:00 
			
		
		
		
	Add debug hashing (won't work on windows)
This commit is contained in:
		
							
								
								
									
										1
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -3110,6 +3110,7 @@ function run() { | |||||||
|                 utils.setCacheState(cacheEntry); |                 utils.setCacheState(cacheEntry); | ||||||
|                 // Download the cache from the cache entry |                 // Download the cache from the cache entry | ||||||
|                 yield cacheHttpClient.downloadCache((_b = cacheEntry) === null || _b === void 0 ? void 0 : _b.archiveLocation, archivePath); |                 yield cacheHttpClient.downloadCache((_b = cacheEntry) === null || _b === void 0 ? void 0 : _b.archiveLocation, archivePath); | ||||||
|  |                 exec_1.exec("md5", [archivePath]); | ||||||
|                 const archiveFileSize = utils.getArchiveFileSize(archivePath); |                 const archiveFileSize = utils.getArchiveFileSize(archivePath); | ||||||
|                 core.info(`Cache Size: ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B)`); |                 core.info(`Cache Size: ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B)`); | ||||||
|                 // Create directory to extract tar into |                 // Create directory to extract tar into | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -2980,6 +2980,7 @@ function run() { | |||||||
|             core.debug(`Cache Path: ${cachePath}`); |             core.debug(`Cache Path: ${cachePath}`); | ||||||
|             const archivePath = path.join(yield utils.createTempDirectory(), "cache.tgz"); |             const archivePath = path.join(yield utils.createTempDirectory(), "cache.tgz"); | ||||||
|             core.debug(`Archive Path: ${archivePath}`); |             core.debug(`Archive Path: ${archivePath}`); | ||||||
|  |             exec_1.exec("md5", [archivePath]); | ||||||
|             // http://man7.org/linux/man-pages/man1/tar.1.html |             // http://man7.org/linux/man-pages/man1/tar.1.html | ||||||
|             // tar [-options] <name of the tar archive> [files or directories which to add into archive] |             // tar [-options] <name of the tar archive> [files or directories which to add into archive] | ||||||
|             const IS_WINDOWS = process.platform === "win32"; |             const IS_WINDOWS = process.platform === "win32"; | ||||||
|   | |||||||
| @@ -82,6 +82,7 @@ async function run(): Promise<void> { | |||||||
|                 cacheEntry?.archiveLocation, |                 cacheEntry?.archiveLocation, | ||||||
|                 archivePath |                 archivePath | ||||||
|             ); |             ); | ||||||
|  |             exec("md5", [archivePath]); | ||||||
|  |  | ||||||
|             const archiveFileSize = utils.getArchiveFileSize(archivePath); |             const archiveFileSize = utils.getArchiveFileSize(archivePath); | ||||||
|             core.info( |             core.info( | ||||||
|   | |||||||
| @@ -52,6 +52,7 @@ async function run(): Promise<void> { | |||||||
|             "cache.tgz" |             "cache.tgz" | ||||||
|         ); |         ); | ||||||
|         core.debug(`Archive Path: ${archivePath}`); |         core.debug(`Archive Path: ${archivePath}`); | ||||||
|  |         exec("md5", [archivePath]); | ||||||
|  |  | ||||||
|         // http://man7.org/linux/man-pages/man1/tar.1.html |         // http://man7.org/linux/man-pages/man1/tar.1.html | ||||||
|         // tar [-options] <name of the tar archive> [files or directories which to add into archive] |         // tar [-options] <name of the tar archive> [files or directories which to add into archive] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Josh Gross
					Josh Gross