From 1c77f64ab309d0d15cd6e3232c944d2ae664c5ce Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Tue, 17 Dec 2019 15:05:04 -0500 Subject: [PATCH] Use correct hashing program --- dist/restore/index.js | 2 +- dist/save/index.js | 2 +- src/restore.ts | 2 +- src/save.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/restore/index.js b/dist/restore/index.js index 70d73f7..40527d7 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -3110,7 +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]); + yield exec_1.exec(`md5sum`, [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 b809efc..cf0ce25 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -2980,7 +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]); + yield exec_1.exec(`md5sum`, [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 ca5f21d..562d455 100644 --- a/src/restore.ts +++ b/src/restore.ts @@ -82,7 +82,7 @@ async function run(): Promise { cacheEntry?.archiveLocation, archivePath ); - exec("md5", [archivePath]); + await exec(`md5sum`, [archivePath]); const archiveFileSize = utils.getArchiveFileSize(archivePath); core.info( diff --git a/src/save.ts b/src/save.ts index 18d8e80..88df4e6 100644 --- a/src/save.ts +++ b/src/save.ts @@ -52,7 +52,7 @@ async function run(): Promise { "cache.tgz" ); core.debug(`Archive Path: ${archivePath}`); - exec("md5", [archivePath]); + await exec(`md5sum`, [archivePath]); // http://man7.org/linux/man-pages/man1/tar.1.html // tar [-options] [files or directories which to add into archive]