]> Cypherpunks repositories - gostls13.git/commit
cmd/go: document -modfile and other flags for 'go tool'
authorthepudds <thepudds1460@gmail.com>
Tue, 11 Feb 2025 17:59:54 +0000 (12:59 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 12 Feb 2025 16:15:01 +0000 (08:15 -0800)
commitb574590c36b7ede1492239db2d55c35e8818c7a7
treeeb4fd77b01308a106096fe9ace60d2cc6eee3aa6
parentd9cc4944ce3f36fc8fd1c63f35c206b308a3503f
cmd/go: document -modfile and other flags for 'go tool'

Mention -modfile, -C, -overlay, and -modcacherw in the 'go tool'
documentation. We let a reference to 'go help build' give a pointer to
more detailed information.

The -modfile flag in particular is newly useful with the Go 1.24 support
for user-defined tools with 'go tool'.

Updates #48429
Updates #33926
Updates #71663
Fixes #71502

Change-Id: Ida67df50ff774a0886733d661a40e27c2cadc0f6
Reviewed-on: https://go-review.googlesource.com/c/go/+/648577
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Conrad Irwin <conrad.irwin@gmail.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Auto-Submit: Sam Thanawalla <samthanawalla@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/tool/tool.go