diff options
author | Orivej Desh <orivej@gmx.fr> | 2017-11-11 01:17:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-11 01:17:23 +0000 |
commit | 0fddfcdd4ddec01fc8dcb099557c322cd615b3df (patch) | |
tree | b2ed59c21e315b0f2fe29cffae1949e104edb270 /pkgs/development | |
parent | 2dd95888344c871084d2e68bf2b3bc16be6f45ef (diff) | |
parent | 6cae9e71273fa95304a72e10e9a4ae64a50191a2 (diff) |
Merge pull request #30350 from alicebob/absdir
go: use absolute dir in getGoDirs()
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/go-modules/generic/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 3a973fc2644a..0d70113727c2 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -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 |