mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
This commit is contained in:
parent
955942b563
commit
f4ebbb78a9
1 changed files with 27 additions and 34 deletions
|
@ -98,9 +98,8 @@ export default async function extractPackageFile(
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const deps = (
|
const deps = [];
|
||||||
await Promise.all(
|
for (const { name, path } of depNames) {
|
||||||
depNames.map(async ({ name, path }) => {
|
|
||||||
try {
|
try {
|
||||||
const [currentDigest] = (await git.subModule(['status', path]))
|
const [currentDigest] = (await git.subModule(['status', path]))
|
||||||
.trim()
|
.trim()
|
||||||
|
@ -116,22 +115,16 @@ export default async function extractPackageFile(
|
||||||
name,
|
name,
|
||||||
httpSubModuleUrl
|
httpSubModuleUrl
|
||||||
);
|
);
|
||||||
return {
|
deps.push({
|
||||||
depName: path,
|
depName: path,
|
||||||
lookupName: getHttpUrl(subModuleUrl),
|
lookupName: getHttpUrl(subModuleUrl),
|
||||||
currentValue,
|
currentValue,
|
||||||
currentDigest,
|
currentDigest,
|
||||||
};
|
});
|
||||||
} catch (err) /* istanbul ignore next */ {
|
} catch (err) /* istanbul ignore next */ {
|
||||||
logger.warn(
|
logger.warn({ err }, 'Error mapping git submodules during extraction');
|
||||||
{ err },
|
}
|
||||||
'Error mapping git submodules during extraction'
|
|
||||||
);
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
)
|
|
||||||
).filter(Boolean);
|
|
||||||
|
|
||||||
return { deps, datasource: datasourceGitRefs.id };
|
return { deps, datasource: datasourceGitRefs.id };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue