]> Cypherpunks repositories - gostls13.git/commit
cmd/go: report tool errors in go list all
authorConrad Irwin <conrad.irwin@gmail.com>
Fri, 6 Dec 2024 05:25:14 +0000 (22:25 -0700)
committerMichael Matloob <matloob@golang.org>
Fri, 6 Dec 2024 19:33:02 +0000 (19:33 +0000)
commit2440717918434aee8450757c160cea5280d0bbe3
tree09cc83f7dfbb8d624f84e2685ce6b06449e22cf2
parent1a193b43a22a67256c7da73c30504d4107e4a64d
cmd/go: report tool errors in go list all

Before tools there was no way to directly import a package in another
module, and so missing packages were always marked as "all" due to being
dependencies of a package in a main module.

Tools break that assumption, and so to report errors in tool packages
correctly we need to mark packages as being in "all" even if they do not
exist.

Fixes #70582

Change-Id: I3273e0ec7910894565206de77986f5c249a5658c
Reviewed-on: https://go-review.googlesource.com/c/go/+/634155
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modload/load.go
src/cmd/go/testdata/script/mod_tool_70582.txt [new file with mode: 0644]