3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-27 05:35:53 +00:00

force a cache

This commit is contained in:
Jonathan Kelley 2025-01-28 23:07:34 -08:00
parent 6095cc4363
commit 470b5b92f9
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE
5 changed files with 47 additions and 87 deletions

27
dist/save/index.js vendored
View file

@ -87334,6 +87334,9 @@ async function rmRF(dirName) {
;// CONCATENATED MODULE: ./src/incremental.ts
// import * as core from "@actions/core";
// import * as io from "@actions/io";
// import { CARGO_HOME } from "./config";
// import { exists } from "./utils";
// import { Packages } from "./workspace";
async function saveMtimes(targetDirs) {
@ -87480,30 +87483,6 @@ async function macOsWorkaround() {
}
catch { }
}
// async function saveIncrementalDirs(incrementalDir: string) {
// // Traverse the incremental folder recursively and collect the modified times in a map
// const modifiedTimes = new Map<string, number>();
// const fillModifiedTimes = async (dir: string) => {
// const dirEntries = await fs.promises.opendir(dir);
// for await (const dirent of dirEntries) {
// if (dirent.isDirectory()) {
// await fillModifiedTimes(path.join(dir, dirent.name));
// } else {
// const fileName = path.join(dir, dirent.name);
// const { mtime } = await fs.promises.stat(fileName);
// modifiedTimes.set(fileName, mtime.getTime());
// }
// }
// };
// await fillModifiedTimes(incrementalDir);
// // Write the modified times to the incremental folder
// core.debug(`writing incremental-restore.json for ${incrementalDir} files`);
// for (const file of modifiedTimes.keys()) {
// core.debug(` ${file} -> ${modifiedTimes.get(file)}`);
// }
// const contents = JSON.stringify({ modifiedTimes });
// await fs.promises.writeFile(path.join(incrementalDir, "incremental-restore.json"), contents);
// }
})();