Merge pull request #30350 from alicebob/absdir

go: use absolute dir in getGoDirs()
This commit is contained in:
Orivej Desh 2017-11-11 01:17:23 +00:00 committed by GitHub
commit 0fddfcdd4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,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