NixOS / nix

Nix, the purely functional package manager

Home Page:https://nixos.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cancelling nix-collect-garbage will cause it to report incorrect statistics

lolbinarycat opened this issue · comments

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

  1. run nix-collect-garbage
  2. let it delete several paths
  3. press ^C
  4. "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.