Skip to content

Commit

Permalink
try(restore): absolute path instead of a glob
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Mar 10, 2024
1 parent 9aeb54c commit 078b98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export async function restoreCache({
let extraTarArgs: string[] = [];

if (!lookupOnly) {
const nixPaths = readdirSync("/nix/store").map(x => `**/${x}`);
const nixPaths = readdirSync("/nix/store").map(x => `/nix/store/${x}`);
const tmp = await cacheUtils.createTempDirectory();
const excludeFromFile = `${tmp}/nix-store-paths`;
writeFileSync(excludeFromFile, nixPaths.join("\n"));
Expand Down

0 comments on commit 078b98c

Please sign in to comment.