From 100d7ea50dbe601164f428f5e4203be7727093f9 Mon Sep 17 00:00:00 2001 From: Michael Matloob Date: Mon, 22 Nov 2021 15:37:29 -0500 Subject: [PATCH] cmd/go: correct an inaccuracy in the 'go help work' docs Change-Id: If2c6586b5ad212214b8041f8768fe7d26b877207 Reviewed-on: https://go-review.googlesource.com/c/go/+/366314 Trust: Michael Matloob Run-TryBot: Michael Matloob TryBot-Result: Go Bot Reviewed-by: Bryan C. Mills --- src/cmd/go/alldocs.go | 2 +- src/cmd/go/internal/workcmd/work.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 296f8f8c6aa..12b64d309c3 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -1383,7 +1383,7 @@ // module directories with the "use" directive. These modules are used // as root modules by the go command for builds and related operations. // A workspace that does not specify modules to be used cannot be used -// to do builds from local code. +// to do builds from local modules. // // To determine whether the go command is operating in workspace mode, // use the "go env GOWORK" command. This will specify the workspace diff --git a/src/cmd/go/internal/workcmd/work.go b/src/cmd/go/internal/workcmd/work.go index a79eebe649e..3ddbfbe7726 100644 --- a/src/cmd/go/internal/workcmd/work.go +++ b/src/cmd/go/internal/workcmd/work.go @@ -24,7 +24,7 @@ A workspace is specified by a go.work file that specifies a set of module directories with the "use" directive. These modules are used as root modules by the go command for builds and related operations. A workspace that does not specify modules to be used cannot be used -to do builds from local code. +to do builds from local modules. To determine whether the go command is operating in workspace mode, use the "go env GOWORK" command. This will specify the workspace