diff options
author | qiulaidongfeng <2645477756@qq.com> | 2024-05-09 22:11:00 +0000 |
---|---|---|
committer | Michael Matloob <matloob@golang.org> | 2024-05-16 14:34:32 +0000 |
commit | 6cd066f8b22290a1737a19d25f5dd899f720180a (patch) | |
tree | 026ef322ae14cbd3cd6f37be0b14302d57a501bb /doc/next | |
parent | d367b2a475e79cdd1f39ccf376098d0566b7dffa (diff) | |
download | go-6cd066f8b22290a1737a19d25f5dd899f720180a.tar.gz go-6cd066f8b22290a1737a19d25f5dd899f720180a.zip |
cmd/go: add -changed to query for non-defaults in the env
Fixes #34208
Change-Id: I8ec2d96262dcd7cbf870f6173690143c54190722
GitHub-Last-Rev: 6543df4784cff1ba5751dc9885ef502e69679118
GitHub-Pull-Request: golang/go#65655
Reviewed-on: https://go-review.googlesource.com/c/go/+/563137
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Diffstat (limited to 'doc/next')
-rw-r--r-- | doc/next/3-tools.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/next/3-tools.md b/doc/next/3-tools.md index c052f3b084..4112fb61ac 100644 --- a/doc/next/3-tools.md +++ b/doc/next/3-tools.md @@ -8,6 +8,10 @@ Distributions that install the `go` command to a location other than `$GOROOT/bin/go` should install a symlink instead of relocating or copying the `go` binary. +The new go env `-changed` flag causes the command to print only +those settings whose effective value differs from the default value +that would be obtained in an empty environment with no prior uses of the `-w` flag. + ### Vet {#vet} The `go vet` subcommand now includes the |