Fix EISDIR error due to globbed directories (#1) (#132)

This commit is contained in:
Felix Riegger
2023-05-02 21:49:27 +02:00
committed by GitHub
parent 6fd3edff69
commit 99229f978c
2 changed files with 24 additions and 0 deletions

View File

@@ -141,6 +141,7 @@ export class CacheConfig {
)),
);
}
keyFiles = keyFiles.filter(file => !fs.statSync(file).isDirectory());
keyFiles.sort((a, b) => a.localeCompare(b));
hasher = crypto.createHash("sha1");