go-modules/generic: add missing PATHs to GOPATH when using nix-shell (#26176)

This commit is contained in:
Joachim Schiele 2017-06-01 20:40:21 +02:00 committed by GitHub
parent 24ea567fb4
commit f30dd71a38

View File

@ -198,7 +198,7 @@ go.stdenv.mkDerivation (
ln -s "${dep.src}" "$d/src/${dep.goPackagePath}" ln -s "${dep.src}" "$d/src/${dep.goPackagePath}"
'' ''
) goPath) + '' ) goPath) + ''
export GOPATH="$d:$GOPATH" export GOPATH=${lib.concatStringsSep ":" ( ["$d"] ++ ["$GOPATH"] ++ ["$PWD"] ++ extraSrcPaths)}
''; '';
disallowedReferences = lib.optional (!allowGoReference) go disallowedReferences = lib.optional (!allowGoReference) go