buildGoModule: set GOPROXY to go default
This commit is contained in:
parent
86cd7e0948
commit
3392d56b72
|
@ -87,6 +87,9 @@ let
|
|||
runHook preConfigure
|
||||
export GOCACHE=$TMPDIR/go-cache
|
||||
export GOPATH="$TMPDIR/go"
|
||||
# fixes 'GOPROXY list is not the empty string, but contains no entries'
|
||||
# "https://proxy.golang.org,direct" is the go default
|
||||
export GOPROXY="''${GOPROXY:-"https://proxy.golang.org,direct"}" # respect impureEnvVars
|
||||
cd "${modRoot}"
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue