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