Log missing root node

This commit is contained in:
Sandro Jäckel 2024-11-06 16:41:52 +01:00
parent 870297a7c8
commit 23a0c059f6
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -43,6 +43,10 @@ export function extractPackageFile(
// skip all locked nodes which are not in the flake.nix and cannot be updated
// istanbul ignore if: a valid flake.lock file will never run into this
if (!(depName in (flakeLock.nodes['root'].inputs ?? []))) {
logger.debug(
{ packageLockFile, error: flakeLockParsed.error },
`invalid flake.lock file because cannot find "root" node`,
);
continue;
}