diff options
| author | Eugene Kalinin <e.v.kalinin@gmail.com> | 2020-08-25 01:49:39 +0300 |
|---|---|---|
| committer | Jay Conrod <jayconrod@google.com> | 2020-10-07 15:43:35 +0000 |
| commit | 0941dc446e6b3028c77158728432086b5c06acf6 (patch) | |
| tree | a60e82fa2cca9a603b569d1022f487b0fb05b7fd /src/cmd/vendor/github.com/google/pprof/internal/plugin/plugin.go | |
| parent | 67edc0ed81947a55adbcd0c9d2317abb93ac9510 (diff) | |
| download | go-0941dc446e6b3028c77158728432086b5c06acf6.tar.xz | |
cmd/go: env -w validates GOTMPDIR value
This change makes go env -w check if GOTMPDIR is an absolute path.
If GOTMPDIR is not an absolute and not existing path there will be an
error at every `work.Builder.Init()`. If `go env` has `-u/-w` as
argument `work.Builder.Init()` is not called.
`go env -w GOTMPDIR=` work in the same way as `go env -u GOTMPDIR`.
Fixes #40932
Change-Id: I6b0662302eeace7f20460b6d26c6e59af1111da2
Reviewed-on: https://go-review.googlesource.com/c/go/+/250198
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Trust: Bryan C. Mills <bcmills@google.com>
Trust: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/cmd/vendor/github.com/google/pprof/internal/plugin/plugin.go')
0 files changed, 0 insertions, 0 deletions
