go: use absolute dir in getGoDirs()
This commit is contained in:
parent
1c9863aafe
commit
6cae9e7127
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue