buildGoPackage: Fix spacing

This commit is contained in:
William A. Kennington III 2015-05-14 17:34:50 -07:00
parent 3a5e10e37f
commit fecf412767

View File

@ -51,16 +51,16 @@ go.stdenv.mkDerivation ( args // {
runHook renameImports
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
done
done
else
find . -type d | while read d; do
find . -type d | while read d; do
for i in $d/*.go; do
go install $buildFlags "''${buildFlagsArray[@]}" -p $NIX_BUILD_CORES -v $d
break
done
done
done
done
fi
runHook postBuild
@ -70,16 +70,16 @@ go.stdenv.mkDerivation ( args // {
runHook preCheck
if [ -n "$subPackages" ] ; then
for p in $subPackages ; do
for p in $subPackages ; do
go test -p $NIX_BUILD_CORES -v $goPackagePath/$p
done
done
else
find . -type d | while read d; do
find . -type d | while read d; do
for i in $d/*_test.go; do
go test -p $NIX_BUILD_CORES -v $d
break
done
done
done
done
fi
runHook postCheck