fix(metadata): leave Go metadata files out of the registry stats

GetRegistryStats counted Go .mod and .info rows while GetStats and the
package rows left them out. The overview registry table therefore
showed more Go packages than the totals. Both stores now use the
artifact filter.
This commit is contained in:
2026-11-24 02:51:18 +00:00
parent c685131865
commit 9c0420161e
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ func (s *Store) GetRegistryStats(ctx context.Context) ([]metadata.RegistryStat,
byRegistry := map[string]*metadata.RegistryStat{}
var order []string
for _, p := range all {
if metadata.IsMetadataVersion(p.Version) {
if metadata.IsMetadataEntry(p.Registry, p.Name, p.Version) {
continue
}
st, ok := byRegistry[p.Registry]