buildGoModule: set GOPROXY to go default

This commit is contained in:
zowoq 2023-07-02 11:30:48 +10:00
parent 86cd7e0948
commit 3392d56b72

View file

@ -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
'';