Merge pull request #305908 from ShamrockLee/go-module-noflagfile

This commit is contained in:
Sandro 2024-06-02 19:30:03 +02:00 committed by GitHub
commit e3716f214b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -218,8 +218,7 @@ let
buildGoDir() {
local cmd="$1" dir="$2"
. $TMPDIR/buildFlagsArray
declare -ga buildFlagsArray
declare -a flags
flags+=($buildFlags "''${buildFlagsArray[@]}")
flags+=(''${tags:+-tags=''${tags// /,}})
@ -258,11 +257,6 @@ let
buildFlagsArray+=(-x)
fi
if [ ''${#buildFlagsArray[@]} -ne 0 ]; then
declare -p buildFlagsArray > $TMPDIR/buildFlagsArray
else
touch $TMPDIR/buildFlagsArray
fi
if [ -z "$enableParallelBuilding" ]; then
export NIX_BUILD_CORES=1
fi