From 5fd8c9b5c5a0348317e49e6c58e34b9a6e00e91a Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Sat, 22 Jan 2022 16:43:53 +1030 Subject: [PATCH] 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 --- src/cmd/go/alldocs.go | 5 ++--- src/cmd/go/internal/work/build.go | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) 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 -- 2.50.0