From 1f3398b2063507b0d36c8b6d7c60d8dba0edfd03 Mon Sep 17 00:00:00 2001 From: Stig Otnes Kolstad Date: Mon, 25 Nov 2024 15:31:18 +0100 Subject: [PATCH] fix(store/github): log warning when no module repos were found --- pkg/store/github/github.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/store/github/github.go b/pkg/store/github/github.go index bca61f6..dd01604 100644 --- a/pkg/store/github/github.go +++ b/pkg/store/github/github.go @@ -392,6 +392,12 @@ func (s *GitHubStore) ReloadCache(ctx context.Context) error { return err } + if len(repos) == 0 { + s.logger.Warn("could not find any module repos matching filter", + zap.String("topic", s.topicFilter), + zap.String("owner", s.ownerFilter)) + } + fresh := make(map[string][]*core.ModuleVersion) for _, repo := range repos {