nix store gc --dry-run prints nothing (nix-collect-garbage --dry-run is correct) #905

Open
opened 2025-07-07 12:36:14 +00:00 by qyriad · 0 comments
Owner
$ nix store gc -v --dry-run
finding garbage collector roots...
determining live/dead paths...

Compared to:

$ nix-collect-garbage -v --dry-run
finding garbage collector roots...
determining live/dead paths...
/nix/store/0052f2lhvy69w0mr69cn8nsgqw1d51zp-pytest_subtests-0.14.1.tar.gz
/nix/store/005r00vnfv6v1j6y5l8c7iirbsjljvhd-libdc1394-2.2.7.tar.gz
[]

Without --dry-run, nix store gc does in fact delete the correct paths, so it's just --dry-run that's busted.

```bash $ nix store gc -v --dry-run finding garbage collector roots... determining live/dead paths... ``` Compared to: ```bash $ nix-collect-garbage -v --dry-run finding garbage collector roots... determining live/dead paths... /nix/store/0052f2lhvy69w0mr69cn8nsgqw1d51zp-pytest_subtests-0.14.1.tar.gz /nix/store/005r00vnfv6v1j6y5l8c7iirbsjljvhd-libdc1394-2.2.7.tar.gz […] ``` Without `--dry-run`, `nix store gc` does in fact delete the correct paths, so it's just `--dry-run` that's busted.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#905
No description provided.