Fix strict-flake-inputs validator
Summary
Fixes jq path and logic bugs in strict-flake-inputs validator:
-
Wrong path: Changed
.locks.nodesto.nodes(locks key doesn't exist at top level of flake.lock) -
Wrong root access: Changed
.locks.nodes.root.inputsto.nodes[.root].inputs -
Simplified logic: Use
.nodes[.root].inputs as $directsdirectly in jq instead of passing bash variables via--argjson -
Better null handling: Check
$directs[$k] != nullfor proper object key lookup instead ofindex($k)
Changes
- Rewrote jq query to use correct flake.lock structure
- Eliminates
--argjsonJSON parsing issues - Properly filters to only direct dependencies