]> Cypherpunks repositories - gostls13.git/commit
testing: allow specify temp dir by GOTMPDIR environment variable
authorAN Long <aisk1988@gmail.com>
Tue, 12 Aug 2025 14:06:53 +0000 (14:06 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 29 Aug 2025 16:56:10 +0000 (09:56 -0700)
commitba9e1ddccfe55e711ac3987f74109393dfb736af
treed1b52c85cb7d885b2f870cba8e1b404b24b877af
parent9f6936b8da81672cebcfa7ac3d6edddf9f1a5d65
testing: allow specify temp dir by GOTMPDIR environment variable

Allow change the default temp directory returned by t.TempDir()
by environment variable GOTMPDIR.

Fixes #61585

Change-Id: Iba969bb02744e106cf15d80e0eda0245a55fc290
GitHub-Last-Rev: aeacea00952b11990b49a0fde6a0ce4fe910b777
GitHub-Pull-Request: golang/go#74844
Reviewed-on: https://go-review.googlesource.com/c/go/+/692455
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go
src/testing/testing.go
src/testing/testing_test.go