diff options
| author | Michael Matloob <matloob@golang.org> | 2022-11-29 18:32:32 -0500 |
|---|---|---|
| committer | Michael Matloob <matloob@golang.org> | 2022-12-01 21:30:53 +0000 |
| commit | 0e8b6056c99daebcc3c571316a9551c9fab03a00 (patch) | |
| tree | 8b6740a74541330110bb3921259fd9d6e43dfbbe /src/runtime/debug | |
| parent | c71d3a0f507555a268791f0597e89e3e0e2c0de7 (diff) | |
| download | go-0e8b6056c99daebcc3c571316a9551c9fab03a00.tar.xz | |
cmd/dist: remove pkg/$GOOS_$GOARCH and pkg/obj at exit
pkg/obj will be empty, so just remove it.
pkg/$GOOS_$GOARCH will be empty unless the user has specified
GODEBUG=installgoroot=all, so check if it's empty, and if so, delete
it.
Also remove xreaddirfiles, which is unused.
Also remove the copy of pkg/$GOOS_$GOARCH in the cmd/go test
TestNewReleaseRebuildsStalePackagesInGOPATH. The directory is empty so
copying it has no effect.
For #47257
Change-Id: Ief90b882d157bd16078cd5d2b83a915bfc831f9a
Reviewed-on: https://go-review.googlesource.com/c/go/+/453496
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/runtime/debug')
0 files changed, 0 insertions, 0 deletions
