Commit Graph

2 Commits

Author SHA1 Message Date
Oleks ffc4494486 graph: prefer nix build --dry-run --json, fall back to text scraper (#8)
Probe --json support via nix build --help and parse structured output
when available (robust across Nix versions and locales). Falls back to
the #5 text scraper on older Nix or unexpected payloads, feeding the
same tri-state contract.
2026-07-08 16:25:29 +03:00
Oleks 9eb7237f04 graph: tri-state to_build_set — empty means nothing to build (#5)
Refactor dry-run text parsing into parse_dry_run_text(text, returncode)
so an empty set (warm cache) is distinct from None (unparseable). Only
None triggers the cold-cache whole-closure fallback in cli.py; an empty
set now correctly reports 'nothing to build'.
2026-07-08 16:24:13 +03:00