Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lolbinarycat opened this issue Apr 25, 2024 · 0 comments
Labels

Comments

@lolbinarycat
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant