mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Merge pull request #30350 from alicebob/absdir
go: use absolute dir in getGoDirs()
This commit is contained in:
commit
0fddfcdd4d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user