mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-26 06:37:07 +00:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user