cancelling nix-collect-garbage will cause it to report incorrect statistics
lolbinarycat opened this issue · comments
lolbinarycat commented
Describe the bug
if nix-collect-garbage is interrupted with a signal, it will report that nothing was deleted, even if it actually deleted several gigabytes.
Steps To Reproduce
- run
nix-collect-garbage
- let it delete several paths
- press
^C
- "0 store paths deleted, 0.00 MiB freed"
Expected behavior
either statistics should be printed correctly, or not at all.
nix-env --version
output
nix-env (Nix) 2.18.1
Priorities
Add 👍 to issues you find important.