docs: remove incorrect claim re gc --print-dead#14394
Merged
edolstra merged 1 commit intoNixOS:masterfrom Oct 28, 2025
Merged
Conversation
Per NixOS#7591, the `nix-store --gc --print-dead` command does not provide any feedback about the amount of disk space that is used by dead store paths. It looks like this has been the case since 7ab6896 (* Garbage collector: added an option `--use-atime' to delete paths in..., 2008-09-17). Update the nix-store documentation to remove the claim that this is function that `nix-store --gc --print-dead` performs.
This comment has been minimized.
This comment has been minimized.
edolstra
approved these changes
Oct 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Update the
nix-store --gcdocumentation to match its actual behaviour.Ideally the behaviour of
nix-store --gcwould be updated to re-add function that was removed, and that has been requested in #7591, but that is a much more significant change. In the meantime, it's useful to at least have the documentation match the expected behaviour.Context
In 4250b64,
nix-store --gc --print-deadgained the ability to report how much space would be freed by running garbage collection. Based on code reading andgit bisect, I think that function broke in 7ab6896, but the documentation wasn't updated at that time.Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.
Summary by CodeRabbit