Broken symbolic links in /nix/var/nix/gcroots/per-user/
are not garbage collected
#7166
Labels
/nix/var/nix/gcroots/per-user/
are not garbage collected
#7166
Describe the bug
Broken symbolic links in
/nix/var/nix/gcroots/per-user/
are not garbage collected. However, broken symbolic links in/nix/var/nix/gcroots/auto/
are garbage collected. This behavior is not consistent, but it might be intentional. Is that so? If so, why? If not, can we also collect broken symbolic links in theper-user
directory?Steps To Reproduce
The problem arose due to excessive usage of
nix-direnv
, which creates symbolic links in theper-user
category. Whennix-direnv
profiles are changed, new links are created, and the old ones become broken.Expected behavior
I do not know what the expected behavior is in general. In my use case, I expected the garbage collector to also collect the symbolic links in the
per-user
directory.nix-env --version
outputnix-env (Nix) 2.11.0
Additional context
See a corresponding issue at
nix-direnv
: nix-community/nix-direnv#242.The text was updated successfully, but these errors were encountered: