mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
[Index] Fallback to building if cache fails
This commit is contained in:
parent
1ceaa42fd1
commit
21f501ed56
1 changed files with 17 additions and 13 deletions
|
@ -105,6 +105,7 @@ for (const parentRepo of ModuleRepos) {
|
||||||
const cloneDir = `${clonesDir}/${name}`;
|
const cloneDir = `${clonesDir}/${name}`;
|
||||||
let moduleDir = repo[2] || '';
|
let moduleDir = repo[2] || '';
|
||||||
|
|
||||||
|
try {
|
||||||
if (previous.includes(repo)) {
|
if (previous.includes(repo)) {
|
||||||
let currentModule = currentRepoJson.modules.filter((x) => x.github.repo === repo[0]);
|
let currentModule = currentRepoJson.modules.filter((x) => x.github.repo === repo[0]);
|
||||||
if (currentModule.length > 1) {
|
if (currentModule.length > 1) {
|
||||||
|
@ -123,6 +124,9 @@ for (const parentRepo of ModuleRepos) {
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.log('Cache fail', repo[0], e);
|
||||||
|
}
|
||||||
|
|
||||||
let githubInfo = getGithubInfo(repo[0]);
|
let githubInfo = getGithubInfo(repo[0]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue