mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 15:41:40 +00: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 a new issue