buildGoPackage: Fix spacing
This commit is contained in:
parent
3a5e10e37f
commit
fecf412767
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user