Skip to content

Fix validate-flake-strict-inputs failing on path-only flakes

Smartypants requested to merge fix-empty-inputs-validation into master

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_inputs is empty after jq filtering
  • Add test case it-accepts-path-only-inputs covering flakes with only path: and follows inputs

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-inputs passes
  • CI pipeline passes

🤖 Generated with Claude Code

Merge request reports