Open edolstra opened 2 years ago
:+1: that'll make it more user friendly. Might be worth having a verbose option though?
While it's still somewhat verbose, the multiuser installer does output less information when "headless" (when FD 0 is not open). This, for example, omits the sudo blocks like:
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 31 nixbld31
in order to give nixbld31 a useful comment
You can see an example of how it differs in any of the CI runs using install-nix-action, i.e. https://github.com/NixOS/nix/runs/5677772364?check_suite_focus=true#step:4:94
From NixUX: Blocked until we have a better installation testing framework.
From NixUX: Blocked until we have a better installation testing framework.
FWIW there are a fair number of material installer improvents that are not technically hard that I personally consider to be ~blocked on better testing. The installer tests reduced uncertainty a lot--for the golden path. But most of the support load is in the edge cases.
Generally Unix commands should be quiet unless they have something interesting to say (like error messages). By contrast, the Nix installer prints hundreds of lines like:
This drowns out useful information. I think it would be better to print only major steps and config info, e.g.
If a command fails, the exact command should be printed. And maybe it could keep a log containing all executed commands.