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