nix store optimise and nix store gc (and possibly other progress reporting commands) drop output #774

Open
opened 2025-03-26 19:45:21 +00:00 by lunaphied · 0 comments
Owner

Describe the bug

There seems to be an issue with progress reporting nix3 commands in that if they print a final message after they complete, sometimes that message gets eaten. This clearly shouldn't happen as these commands are often long-running and when the user returns to the CLI they will not see what was completed.

Steps To Reproduce

  1. Run nix store optimise or nix store gc
  2. Observe the lacking multiple lines of output that should happen after the progress reporting has been completed.

Expected behavior

The final output messages (which for both are already specified in the code) should actually be displayed.

nix --version output

nix (Lix, like Nix) 2.93.0-dev (rev: f270d3ebe)

## Describe the bug There seems to be an issue with progress reporting nix3 commands in that if they print a final message after they complete, sometimes that message gets eaten. This clearly shouldn't happen as these commands are often long-running and when the user returns to the CLI they will not see what was completed. ## Steps To Reproduce 1. Run `nix store optimise` or `nix store gc` 2. Observe the lacking multiple lines of output that should happen after the progress reporting has been completed. ## Expected behavior The final output messages (which for both are already specified in the code) should actually be displayed. ## `nix --version` output `nix (Lix, like Nix) 2.93.0-dev` (rev: f270d3ebe)
lunaphied removed their assignment 2025-03-26 19:45:54 +00:00
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#774
No description provided.