nix icon indicating copy to clipboard operation
nix copied to clipboard

space out the output of "building ..." in `nixos-rebuild`

Open goyalyashpal opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

the output of the nixos-rebuild command shows the "building ..." info right alongside the stats this causes a huge portion of it to become clipped.

$ sudo nixos-rebuild --upgrade-all boot
unpacking channels...
building the system configuration...
[2/54/71 built, 103 copied (1197.1/1197.4 MiB), 720.1 MiB DL] building nvidia-settings-550.78 (buildPhase):       | ^~~~~~~

Describe the solution you'd like

  • that should be shown in a separate line for readability, as follows. or
    $ sudo nixos-rebuild --upgrade-all boot
    unpacking channels...
    building the system configuration...
    [2/54/71 built, 103 copied (1197.1/1197.4 MiB), 720.1 MiB DL] 
    ----the suggestion 👇----
    building nvidia-settings-550.78 (buildPhase):       | ^~~~~~~
    
    

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

  • the clipped aka after the last colon may be removed
    $ sudo nixos-rebuild --upgrade-all boot
    unpacking channels...
    building the system configuration...
    [2/54/71 built, 103 copied (1197.1/1197.4 MiB), 720.1 MiB DL] building nvidia-settings-550.78 (buildPhase)
                                                                                       suggestion here 👆 ~~~^
    
    

Additional context Add any other context or screenshots about the feature request here.

Priorities

Add :+1: to issues you find important.

goyalyashpal avatar Aug 16 '24 11:08 goyalyashpal

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-08-28-nix-team-meeting-minutes-173/51302/1

nixos-discourse avatar Aug 28 '24 21:08 nixos-discourse

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-08-02-nix-team-meeting-minutes-174/51512/1

nixos-discourse avatar Sep 02 '24 15:09 nixos-discourse

No objections, but need to be careful making the progress bar multiline. This can cause other errors and UX degradation.

tomberek avatar Oct 30 '24 20:10 tomberek

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-10-30-nix-team-meeting-minutes-190/55845/1

nixos-discourse avatar Nov 10 '24 20:11 nixos-discourse

slight offtopic, but is there some way to make nix build to show all the output i.e. not overwrite in the same line just like nix-build does? i tried --verbose but that didn't affect this behaviour?

goyalyashpal avatar Jun 24 '25 19:06 goyalyashpal