]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/work: make formatOutput return an error that includes the import...
authorBryan C. Mills <bcmills@google.com>
Wed, 16 Nov 2022 20:36:30 +0000 (15:36 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 1 Dec 2022 19:27:18 +0000 (19:27 +0000)
commitaf1a5d92871129e5fff093bcb3518b1ebfc86976
treebab8d31b37337df42fb2bb4f0393e1a74d737f82
parente24380b6fa82682baa4103787373520c7685e38a
cmd/go/internal/work: make formatOutput return an error that includes the import path

This refines the error output that was previously adjusted in CL 437298.

Longer term, we should consider unraveling the call chains involving
formatOutput to avoid passing so many parameters through so many
different formatting functions.

Updates #25842.

Change-Id: I3b9d03bf5968902d8ccc4841ab4dbe114a2239e4
Reviewed-on: https://go-review.googlesource.com/c/go/+/451218
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/internal/work/exec.go
src/cmd/go/internal/work/gc.go
src/cmd/go/testdata/script/list_export_e.txt
src/cmd/go/testdata/script/list_pkgconfig_error.txt [new file with mode: 0644]