mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-10 14:06:30 +00:00
Work around istanbul issue
This commit is contained in:
parent
96fd373ed8
commit
7eed106edf
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ export function extractPackageFile(
|
||||||
}
|
}
|
||||||
|
|
||||||
// skip all locked nodes which are not in the flake.nix and cannot be updated
|
// skip all locked nodes which are not in the flake.nix and cannot be updated
|
||||||
// istanbul ignore next: a valid flake.lock file will never run into this
|
const rootInputs = flakeLock.nodes['root'].inputs;
|
||||||
if (!(depName in (flakeLock.nodes['root'].inputs ?? []))) {
|
if (!rootInputs || !(depName in rootInputs)) {
|
||||||
logger.debug(
|
logger.debug(
|
||||||
{ packageLockFile, error: flakeLockParsed.error },
|
{ packageLockFile, error: flakeLockParsed.error },
|
||||||
`invalid flake.lock file because cannot find "root" node`,
|
`invalid flake.lock file because cannot find "root" node`,
|
||||||
|
|
Loading…
Reference in a new issue