Fix validate-flake-strict-inputs failing on path-only flakes
Summary
- Fix bash bug where
while IFS='|' read -r ... <<< ""executes once with empty variables when no git/github inputs exist - Add early exit when
all_inputsis empty after jq filtering - Add test case
it-accepts-path-only-inputscovering flakes with onlypath:andfollowsinputs
Context
Discovered in haskell-make-package-set!3 (merged) where test flakes use path: references back to the parent repo and follows for transitive deps. The validator incorrectly rejected these flakes.
Fixes #4 (closed)
Test plan
-
Existing tests still pass ( it-accepts-valid-inputs,it-rejects-invalid-inputs) -
New test it-accepts-path-only-inputspasses -
CI pipeline passes