From a70833fb48e11197b21cecff808e4b95962b2471 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Tue, 17 Dec 2019 14:57:36 -0500 Subject: [PATCH] Add debug hashing (won't work on windows) --- dist/restore/index.js | 1 + dist/save/index.js | 1 + src/restore.ts | 1 + src/save.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/dist/restore/index.js b/dist/restore/index.js index 59caf5d..70d73f7 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -3110,6 +3110,7 @@ function run() { utils.setCacheState(cacheEntry); // Download the cache from the cache entry yield cacheHttpClient.downloadCache((_b = cacheEntry) === null || _b === void 0 ? void 0 : _b.archiveLocation, archivePath); + exec_1.exec("md5", [archivePath]); const archiveFileSize = utils.getArchiveFileSize(archivePath); core.info(`Cache Size: ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B)`); // Create directory to extract tar into diff --git a/dist/save/index.js b/dist/save/index.js index 910ecb5..b809efc 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -2980,6 +2980,7 @@ function run() { core.debug(`Cache Path: ${cachePath}`); const archivePath = path.join(yield utils.createTempDirectory(), "cache.tgz"); core.debug(`Archive Path: ${archivePath}`); + exec_1.exec("md5", [archivePath]); // http://man7.org/linux/man-pages/man1/tar.1.html // tar [-options] [files or directories which to add into archive] const IS_WINDOWS = process.platform === "win32"; diff --git a/src/restore.ts b/src/restore.ts index 09a3d2f..ca5f21d 100644 --- a/src/restore.ts +++ b/src/restore.ts @@ -82,6 +82,7 @@ async function run(): Promise { cacheEntry?.archiveLocation, archivePath ); + exec("md5", [archivePath]); const archiveFileSize = utils.getArchiveFileSize(archivePath); core.info( diff --git a/src/save.ts b/src/save.ts index 2999eb9..18d8e80 100644 --- a/src/save.ts +++ b/src/save.ts @@ -52,6 +52,7 @@ async function run(): Promise { "cache.tgz" ); core.debug(`Archive Path: ${archivePath}`); + exec("md5", [archivePath]); // http://man7.org/linux/man-pages/man1/tar.1.html // tar [-options] [files or directories which to add into archive]