Files
Davanum Srinivas 50248ff92d dependencyverifier: record indirect-only unwanted modules
The nil check inside the referencer loop tested the map that the code
above had just created, so it never ran. An unwanted module whose only
referencers are main modules listing it as an indirect dependency got no
status.unwantedReferences key at all; google/btree, reached through the
go.mod-less peterbourgon/diskv v2, was invisible this way until diskv
v3.0.1 gave it a visible referencer.

Check for the key instead, so the next module in that situation shows up
as an empty entry.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-09-28 11:53:21 -04:00
..