to_build_set conflates "nothing to build" with "parse failure" → warm cache reported as cold
#5
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?
In
nix_estimator/graph.py:95,return built or Nonemakes an empty parse result (fully warm cache: dry-run prints only "will be fetched") indistinguishable from an unparseable dry-run. Callers treatNoneas "assume cold cache" and cost the ENTIRE closure — so the best case (nothing to build) is reported as the worst case. Theest.to_build == 0branch incli.py:27is dead code.Implementation:
set()when parsing succeeded but nothing will be built (detect that the dry-run exited 0 and/or a "will be fetched"/"will be built" header was seen), andNoneonly when no recognizable dry-run output was found.build_dag/cli.pyaccordingly.Fixed and merged to main (commit
837b885).