nixos-rebuild --fast: Don't imply --show-trace

There is no logical reason for --fast to imply --show-trace, and this
seems to be a historical accident. Using --show-trace by default is
bad UX since it can give very long error messages (e.g. 550 lines for
a non-existent attribute in environment.systemPackages).
This commit is contained in:
Eelco Dolstra 2021-06-03 19:01:09 +02:00
parent 53bc86a9ad
commit 4cffb1212a
2 changed files with 3 additions and 5 deletions

@ -402,10 +402,9 @@
</term> </term>
<listitem> <listitem>
<para> <para>
Equivalent to <option>--no-build-nix</option> Equivalent to <option>--no-build-nix</option>. This option is
<option>--show-trace</option>. This option is useful if you call useful if you call <command>nixos-rebuild</command> frequently
<command>nixos-rebuild</command> frequently (e.g. if youre hacking on (e.g. if youre hacking on a NixOS module).
a NixOS module).
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>

@ -79,7 +79,6 @@ while [ "$#" -gt 0 ]; do
--fast) --fast)
buildNix= buildNix=
fast=1 fast=1
extraBuildFlags+=(--show-trace)
;; ;;
--profile-name|-p) --profile-name|-p)
if [ -z "$1" ]; then if [ -z "$1" ]; then