diff options
Diffstat (limited to 'internal/fetchdatasource/fetchdatasource.go')
| -rw-r--r-- | internal/fetchdatasource/fetchdatasource.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/fetchdatasource/fetchdatasource.go b/internal/fetchdatasource/fetchdatasource.go index efcd20e6..8f3e0ad0 100644 --- a/internal/fetchdatasource/fetchdatasource.go +++ b/internal/fetchdatasource/fetchdatasource.go @@ -379,13 +379,14 @@ func (*FetchDataSource) GetModuleReadme(ctx context.Context, modulePath, resolve } // SupportsSearch reports whether any of the configured Getters are searchable. -func (ds *FetchDataSource) SupportsSearch() bool { +func (ds *FetchDataSource) SearchSupport() internal.SearchSupport { for _, g := range ds.opts.Getters { if _, ok := g.(fetch.SearchableModuleGetter); ok { - return true + // Getters only support basic search. + return internal.BasicSearch } } - return false + return internal.NoSearch } // Search delegates search to any configured getters that support the |
