go: use absolute dir in getGoDirs()

This commit is contained in:
Harmen 2017-10-12 15:46:08 +02:00
parent 1c9863aafe
commit 6cae9e7127
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ go.stdenv.mkDerivation (
if [ -n "$subPackages" ]; then
echo "$subPackages" | sed "s,\(^\| \),\1$goPackagePath/,g"
else
pushd go/src >/dev/null
pushd "$NIX_BUILD_TOP/go/src" >/dev/null
find "$goPackagePath" -type f -name \*$type.go -exec dirname {} \; | grep -v "/vendor/" | sort | uniq
popd >/dev/null
fi