goPackages: disable parallel builds
It breaks cascadia tests. If a process terminates before wait, the PID is non-existant and wait fails. Using & and wait in bash is just broken and shouldn't be used. We shall probably use GNU parallel for this job. cc @wkennington
This commit is contained in:
parent
9458bde4c1
commit
75ed15e174
@ -80,8 +80,8 @@ go.stdenv.mkDerivation (
|
|||||||
PIDS=()
|
PIDS=()
|
||||||
if [ -n "$subPackages" ] ; then
|
if [ -n "$subPackages" ] ; then
|
||||||
for p in $subPackages ; do
|
for p in $subPackages ; do
|
||||||
go install $buildFlags "''${buildFlagsArray[@]}" -p $NIX_BUILD_CORES -v $goPackagePath/$p &
|
go install $buildFlags "''${buildFlagsArray[@]}" -p $NIX_BUILD_CORES -v $goPackagePath/$p
|
||||||
PIDS+=("$!")
|
#PIDS+=("$!")
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
pushd go/src
|
pushd go/src
|
||||||
@ -99,8 +99,8 @@ go.stdenv.mkDerivation (
|
|||||||
if [ -n "$OUT" ]; then
|
if [ -n "$OUT" ]; then
|
||||||
echo "$OUT" >&2
|
echo "$OUT" >&2
|
||||||
fi
|
fi
|
||||||
} &
|
}
|
||||||
PIDS+=("$!")
|
#PIDS+=("$!")
|
||||||
done < <(find $goPackagePath -type f -name \*.go -exec dirname {} \; | sort | uniq)
|
done < <(find $goPackagePath -type f -name \*.go -exec dirname {} \; | sort | uniq)
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
@ -119,16 +119,16 @@ go.stdenv.mkDerivation (
|
|||||||
PIDS=()
|
PIDS=()
|
||||||
if [ -n "$subPackages" ] ; then
|
if [ -n "$subPackages" ] ; then
|
||||||
for p in $subPackages ; do
|
for p in $subPackages ; do
|
||||||
go test -p $NIX_BUILD_CORES -v $goPackagePath/$p &
|
go test -p $NIX_BUILD_CORES -v $goPackagePath/$p
|
||||||
done
|
done
|
||||||
PIDS+=("$!")
|
#PIDS+=("$!")
|
||||||
else
|
else
|
||||||
pushd go/src
|
pushd go/src
|
||||||
while read d; do
|
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)
|
done < <(find $goPackagePath -type f -name \*_test.go -exec dirname {} \; | sort | uniq)
|
||||||
popd
|
popd
|
||||||
PIDS+=("$!")
|
#PIDS+=("$!")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Exit on error from the parallel process
|
# Exit on error from the parallel process
|
||||||
|
Loading…
Reference in New Issue
Block a user