1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00

Revert "goPackages: disable parallel builds"

This reverts commit 75ed15e174.

Turns out it was just a missing &

cc @wkennington
This commit is contained in:
Luca Bruno 2015-08-26 12:12:52 +02:00
parent 75ed15e174
commit 08a6b7aa46

View file

@ -80,8 +80,8 @@ go.stdenv.mkDerivation (
PIDS=()
if [ -n "$subPackages" ] ; then
for p in $subPackages ; do
go install $buildFlags "''${buildFlagsArray[@]}" -p $NIX_BUILD_CORES -v $goPackagePath/$p
#PIDS+=("$!")
go install $buildFlags "''${buildFlagsArray[@]}" -p $NIX_BUILD_CORES -v $goPackagePath/$p &
PIDS+=("$!")
done
else
pushd go/src
@ -99,8 +99,8 @@ go.stdenv.mkDerivation (
if [ -n "$OUT" ]; then
echo "$OUT" >&2
fi
}
#PIDS+=("$!")
} &
PIDS+=("$!")
done < <(find $goPackagePath -type f -name \*.go -exec dirname {} \; | sort | uniq)
popd
fi
@ -119,16 +119,16 @@ go.stdenv.mkDerivation (
PIDS=()
if [ -n "$subPackages" ] ; then
for p in $subPackages ; do
go test -p $NIX_BUILD_CORES -v $goPackagePath/$p
go test -p $NIX_BUILD_CORES -v $goPackagePath/$p &
done
#PIDS+=("$!")
PIDS+=("$!")
else
pushd go/src
while read d; do
go test -p $NIX_BUILD_CORES -v $d
go test -p $NIX_BUILD_CORES -v $d &
done < <(find $goPackagePath -type f -name \*_test.go -exec dirname {} \; | sort | uniq)
popd
#PIDS+=("$!")
PIDS+=("$!")
fi
# Exit on error from the parallel process