mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-12-23 12:36:01 +01:00
Use correct hashing program
This commit is contained in:
parent
a70833fb48
commit
1c77f64ab3
4 changed files with 4 additions and 4 deletions
2
dist/restore/index.js
vendored
2
dist/restore/index.js
vendored
|
@ -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
|
||||
|
|
2
dist/save/index.js
vendored
2
dist/save/index.js
vendored
|
@ -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] <name of the tar archive> [files or directories which to add into archive]
|
||||
const IS_WINDOWS = process.platform === "win32";
|
||||
|
|
|
@ -82,7 +82,7 @@ async function run(): Promise<void> {
|
|||
cacheEntry?.archiveLocation,
|
||||
archivePath
|
||||
);
|
||||
exec("md5", [archivePath]);
|
||||
await exec(`md5sum`, [archivePath]);
|
||||
|
||||
const archiveFileSize = utils.getArchiveFileSize(archivePath);
|
||||
core.info(
|
||||
|
|
|
@ -52,7 +52,7 @@ async function run(): Promise<void> {
|
|||
"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] <name of the tar archive> [files or directories which to add into archive]
|
||||
|
|
Loading…
Reference in a new issue