]> Cypherpunks repositories - gostls13.git/commit
cmd/go: only print GOCACHE value in env -changed if it's not the default
authorqiulaidongfeng <2645477756@qq.com>
Wed, 23 Oct 2024 14:45:58 +0000 (22:45 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 9 Apr 2025 20:56:45 +0000 (13:56 -0700)
commit8898450841e2febb86028389e358d9d906fddbfb
tree0e59085438651974f3223f6e9ab43664d36ed7e6
parent4820816b0d5061568578d0767e4caf603a39baa6
cmd/go: only print GOCACHE value in env -changed if it's not the default

When other environment variables are set to default values,
we will not print it in go env -changed,
GOCACHE should do the same.

For #69994

Change-Id: I16661803cf1f56dd132b4db1c2d5cb4823fc0e58
Reviewed-on: https://go-review.googlesource.com/c/go/+/621997
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/go/internal/cache/default.go
src/cmd/go/testdata/script/env_changed.txt