[Index] Fallback to building if cache fails

This commit is contained in:
Ducko 2021-05-05 19:56:12 +01:00 committed by フズキ
parent 1ceaa42fd1
commit 21f501ed56
No known key found for this signature in database
GPG Key ID: E06450E46F83376C
1 changed files with 17 additions and 13 deletions

View File

@ -105,6 +105,7 @@ for (const parentRepo of ModuleRepos) {
const cloneDir = `${clonesDir}/${name}`;
let moduleDir = repo[2] || '';
try {
if (previous.includes(repo)) {
let currentModule = currentRepoJson.modules.filter((x) => x.github.repo === repo[0]);
if (currentModule.length > 1) {
@ -123,6 +124,9 @@ for (const parentRepo of ModuleRepos) {
continue;
}
} catch (e) {
console.log('Cache fail', repo[0], e);
}
let githubInfo = getGithubInfo(repo[0]);