mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
Merge pull request #14493 from kamilchm/build-go-without-vendor
buildGoPackage: we don't need to build vendored packages
This commit is contained in:
commit
6db84ed559
@ -106,7 +106,7 @@ go.stdenv.mkDerivation (
|
|||||||
echo "$subPackages" | sed "s,\(^\| \),\1$goPackagePath/,g"
|
echo "$subPackages" | sed "s,\(^\| \),\1$goPackagePath/,g"
|
||||||
else
|
else
|
||||||
pushd go/src >/dev/null
|
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
|
popd >/dev/null
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user