Skip to content
Snippets Groups Projects
Unverified Commit f4ebbb78 authored by Eric Citaire's avatar Eric Citaire Committed by GitHub
Browse files

fix(git-submodules): sequential submodules processing (#11659) (#11661)

parent 955942b5
No related branches found
No related tags found
No related merge requests found
......@@ -98,9 +98,8 @@ export default async function extractPackageFile(
return null;
}
const deps = (
await Promise.all(
depNames.map(async ({ name, path }) => {
const deps = [];
for (const { name, path } of depNames) {
try {
const [currentDigest] = (await git.subModule(['status', path]))
.trim()
......@@ -116,22 +115,16 @@ export default async function extractPackageFile(
name,
httpSubModuleUrl
);
return {
deps.push({
depName: path,
lookupName: getHttpUrl(subModuleUrl),
currentValue,
currentDigest,
};
});
} catch (err) /* istanbul ignore next */ {
logger.warn(
{ err },
'Error mapping git submodules during extraction'
);
return null;
logger.warn({ err }, 'Error mapping git submodules during extraction');
}
}
})
)
).filter(Boolean);
return { deps, datasource: datasourceGitRefs.id };
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment