From: Mark Pulford Date: Sat, 22 Jan 2022 06:13:53 +0000 (+1030) Subject: cmd/go: correct -trimpath docs for the standard library X-Git-Tag: go1.18beta2~3 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5fd8c9b5c5a0348317e49e6c58e34b9a6e00e91a;p=gostls13.git cmd/go: correct -trimpath docs for the standard library Fixes #50402 Change-Id: Ic539afc1aef3906ef591b403eba0fde20a5ccef2 Reviewed-on: https://go-review.googlesource.com/c/go/+/380078 Reviewed-by: Bryan Mills Trust: Emmanuel Odeke Run-TryBot: Emmanuel Odeke --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 1d3098a76e..826b0ccf19 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -209,9 +209,8 @@ // -trimpath // remove all file system paths from the resulting executable. // Instead of absolute file system paths, the recorded file names -// will begin with either "go" (for the standard library), -// or a module path@version (when using modules), -// or a plain import path (when using GOPATH). +// will begin either a module path@version (when using modules), +// or a plain import path (when using the standard library, or GOPATH). // -toolexec 'cmd args' // a program to use to invoke toolchain programs like vet and asm. // For example, instead of running asm, the go command will run diff --git a/src/cmd/go/internal/work/build.go b/src/cmd/go/internal/work/build.go index 56648338c5..1c278d3d99 100644 --- a/src/cmd/go/internal/work/build.go +++ b/src/cmd/go/internal/work/build.go @@ -162,9 +162,8 @@ and test commands: -trimpath remove all file system paths from the resulting executable. Instead of absolute file system paths, the recorded file names - will begin with either "go" (for the standard library), - or a module path@version (when using modules), - or a plain import path (when using GOPATH). + will begin either a module path@version (when using modules), + or a plain import path (when using the standard library, or GOPATH). -toolexec 'cmd args' a program to use to invoke toolchain programs like vet and asm. For example, instead of running asm, the go command will run