forked from lix-project/lix
Quantum Jump
6e0ca02425
`nix-collect-garbage --dry-run` previously elided the entire garbage
collection check, meaning that it would just exit the script without
printing anything.
This change makes the dry run flag instead set the GC action to
`gcReturnDead` rather than `gcDeleteDead`, and then continue with the
script. So if you set `--dry-run`, it will print the paths it *would*
have garbage collected, but not actually delete them.
I filed a bug for this: lix-project/lix#432 but then realised I could give fixing it a go myself.
Change-Id:
|
||
---|---|---|
.. | ||
.gitkeep | ||
better-attrpath-errors.md | ||
build-dir.md | ||
distinguish-throw-errors.md | ||
fix-gc-dry-run.md | ||
fod-failure-includes-url.md | ||
multiline-log-format.md | ||
nix-copy-is-fast.md | ||
old-protocol-removal.md | ||
registry-add-shorthand-only.md | ||
reject-flake-config.md | ||
repl-complete-colon.md | ||
sanitizers.md |