Skip to content

Commit a5339da

Browse files
dmitshurgopherbot
authored andcommitted
doc/next: document go mod tidy -diff flag
Add a release note for the flag that CL 585401 added. For #27005. For #65614. Change-Id: Ib26eb1b85c511d3cb41a29a8d9354577dd9a0e14 Reviewed-on: https://go-review.googlesource.com/c/go/+/587695 Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
1 parent 9b5d27f commit a5339da

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/next/3-tools.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ Distributions that install the `go` command to a location other than
88
`$GOROOT/bin/go` should install a symlink instead of relocating
99
or copying the `go` binary.
1010

11-
The new go env `-changed` flag causes the command to print only
11+
<!-- go.dev/issue/34208, CL 563137, CL 586095 -->
12+
The new `go` `env` `-changed` flag causes the command to print only
1213
those settings whose effective value differs from the default value
1314
that would be obtained in an empty environment with no prior uses of the `-w` flag.
1415

16+
<!-- go.dev/issue/27005, CL 585401 -->
17+
The new `go` `mod` `tidy` `-diff` flag causes the command not to modify
18+
the files but instead print the necessary changes as a unified diff.
19+
It exits with a non-zero code if updates are needed.
20+
1521
### Vet {#vet}
1622

1723
The `go vet` subcommand now includes the

0 commit comments

Comments
 (0)