abuild: fix go not creating GOTMPDIR on it's own

Fixes #10156
This commit is contained in:
Sertonix 2024-10-11 23:30:01 +02:00 committed by Natanael Copa
parent 706067d09a
commit 6e5cb0cfc1

View File

@ -703,6 +703,8 @@ runpart() {
export GOCACHE="${GOCACHE:-"$tmpdir/go"}"
export GOMODCACHE="${GOCACHE:-"$tmpdir/gomod"}"
export GOTMPDIR="${GOTMPDIR:-"$tmpdir"}"
# https://github.com/golang/go/issues/32320
mkdir -p "$GOTMPDIR"
export CARGO_HOME="${CARGO_HOME:-"$tmpdir/cargo"}"
fi