Dry-run output scraping is brittle across Nix versions/locales #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
graph.py:79-95scrapes the human text ofnix build --dry-run("will be built"/"will be fetched"). Wording changes, locales, or stderr interleaving break it silently — and due to bug #1 the failure mode is a quiet cold-cache overestimate.Implementation:
nix build --dry-run --jsonsupport and prefer structured output when available, falling back to the scraper.--debugdump.Fixed and merged to main (commit
837b885).