From fbe478521f35ce368a6de476f373478a3d83a189 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 5 Jun 2024 09:30:34 -0700 Subject: [PATCH] cmd/go: add pointer to build flags in "go get" docs Fixes #67728 Change-Id: Ifbdee77dcebd865eac9501ec4615128eb3a9c9c0 Reviewed-on: https://go-review.googlesource.com/c/go/+/590797 LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Reviewed-by: Michael Matloob Commit-Queue: Ian Lance Taylor --- src/cmd/go/alldocs.go | 2 ++ src/cmd/go/internal/modget/get.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index ad8e17e358..bc198267c2 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -721,6 +721,8 @@ // debugging version control commands when a module is downloaded directly // from a repository. // +// For more about build flags, see 'go help build'. +// // For more about modules, see https://golang.org/ref/mod. // // For more about using 'go get' to update the minimum Go version and diff --git a/src/cmd/go/internal/modget/get.go b/src/cmd/go/internal/modget/get.go index 9a02fcdd96..73431285b9 100644 --- a/src/cmd/go/internal/modget/get.go +++ b/src/cmd/go/internal/modget/get.go @@ -113,6 +113,8 @@ The -x flag prints commands as they are executed. This is useful for debugging version control commands when a module is downloaded directly from a repository. +For more about build flags, see 'go help build'. + For more about modules, see https://golang.org/ref/mod. For more about using 'go get' to update the minimum Go version and