]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.19] cmd/go/internal/work: make formatOutput return an error that...
authorBryan C. Mills <bcmills@google.com>
Wed, 16 Nov 2022 20:36:30 +0000 (15:36 -0500)
committerMichael Pratt <mpratt@google.com>
Tue, 13 Jun 2023 20:00:09 +0000 (20:00 +0000)
commit7d6517cf420d131773852f2c5cdd6d07f6edf2ad
tree465fdfc9be6d1d023a5dd4d3ba98f7f200a646a4
parentc045822e4d7491271c91359a4ff7f333ca5d1ea9
[release-branch.go1.19] 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 #60710.
Updates #60650.
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>
Reviewed-on: https://go-review.googlesource.com/c/go/+/502196
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Bypass: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@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]