diff options
author | Than McIntosh <thanm@google.com> | 2024-03-04 15:52:56 +0000 |
---|---|---|
committer | Than McIntosh <thanm@google.com> | 2024-03-04 20:12:49 +0000 |
commit | 2b22fc10459dff0fb4b3e5b08bc14ffb349aa4dd (patch) | |
tree | b5a5b1e13bcefe0142178d0be86d1aa2e9fc6a67 /doc | |
parent | f1722e9a6e57e4e7b926c4204707f7a15091b5c0 (diff) | |
download | go-2b22fc10459dff0fb4b3e5b08bc14ffb349aa4dd.tar.gz go-2b22fc10459dff0fb4b3e5b08bc14ffb349aa4dd.zip |
cmd/go: respect -coverpkg for unselected no-test packages
This patch fixes a bug in the code that reports coverage percentages
and/or profiles for packages without tests. Specifically, the code
added as part of the fix for issue 24570 (in CL 495447) didn't
properly consider the -coverpkg selection and would look for the build
action meta-data file for a package that wasn't actually selected for
coverage.
Fixes #65653.
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest
Change-Id: I66ffac11783c00a8cbd855fd05b9a90e4e0ed402
Reviewed-on: https://go-review.googlesource.com/c/go/+/568835
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions