3
0
Fork 0
forked from mirrors/nixpkgs

buildGoPackage: we don't need to build vendored packages

This commit is contained in:
Kamil Chmielewski 2016-04-06 10:47:04 +02:00
parent c245d1478e
commit bf9f60fe74

View file

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