mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-10-28 13:45:38 +08:00
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>