go-modules/generic: add missing PATHs to GOPATH when using nix-shell (#26176)
This commit is contained in:
parent
24ea567fb4
commit
f30dd71a38
@ -198,7 +198,7 @@ go.stdenv.mkDerivation (
|
||||
ln -s "${dep.src}" "$d/src/${dep.goPackagePath}"
|
||||
''
|
||||
) goPath) + ''
|
||||
export GOPATH="$d:$GOPATH"
|
||||
export GOPATH=${lib.concatStringsSep ":" ( ["$d"] ++ ["$GOPATH"] ++ ["$PWD"] ++ extraSrcPaths)}
|
||||
'';
|
||||
|
||||
disallowedReferences = lib.optional (!allowGoReference) go
|
||||
|
Loading…
Reference in New Issue
Block a user