3
0
Fork 0
forked from mirrors/nixpkgs

buildGo{module,package}: do not build with verbose flags

This creates a lot of noise that can hide actual compile errors.
This commit is contained in:
Jörg Thalheim 2022-12-04 16:01:01 +01:00
parent 8ae7fa8541
commit 4a94d77712
2 changed files with 2 additions and 2 deletions

View file

@ -209,7 +209,7 @@ let
flags+=($buildFlags "''${buildFlagsArray[@]}") flags+=($buildFlags "''${buildFlagsArray[@]}")
flags+=(''${tags:+-tags=${lib.concatStringsSep "," tags}}) flags+=(''${tags:+-tags=${lib.concatStringsSep "," tags}})
flags+=(''${ldflags:+-ldflags="$ldflags"}) flags+=(''${ldflags:+-ldflags="$ldflags"})
flags+=("-v" "-p" "$NIX_BUILD_CORES") flags+=("-p" "$NIX_BUILD_CORES")
if [ "$cmd" = "test" ]; then if [ "$cmd" = "test" ]; then
flags+=(-vet=off) flags+=(-vet=off)

View file

@ -168,7 +168,7 @@ let
flags+=($buildFlags "''${buildFlagsArray[@]}") flags+=($buildFlags "''${buildFlagsArray[@]}")
flags+=(''${tags:+-tags=${lib.concatStringsSep "," tags}}) flags+=(''${tags:+-tags=${lib.concatStringsSep "," tags}})
flags+=(''${ldflags:+-ldflags="$ldflags"}) flags+=(''${ldflags:+-ldflags="$ldflags"})
flags+=("-v" "-p" "$NIX_BUILD_CORES") flags+=("-p" "$NIX_BUILD_CORES")
if [ "$cmd" = "test" ]; then if [ "$cmd" = "test" ]; then
flags+=(-vet=off) flags+=(-vet=off)