Skip to content

Commit f30dd71

Browse files
authoredJun 1, 2017
go-modules/generic: add missing PATHs to GOPATH when using nix-shell (#26176)
1 parent 24ea567 commit f30dd71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pkgs/development/go-modules/generic/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ go.stdenv.mkDerivation (
198198
ln -s "${dep.src}" "$d/src/${dep.goPackagePath}"
199199
''
200200
) goPath) + ''
201-
export GOPATH="$d:$GOPATH"
201+
export GOPATH=${lib.concatStringsSep ":" ( ["$d"] ++ ["$GOPATH"] ++ ["$PWD"] ++ extraSrcPaths)}
202202
'';
203203

204204
disallowedReferences = lib.optional (!allowGoReference) go

0 commit comments

Comments
 (0)
Please sign in to comment.