fix: pointer type mismatch
1 file changed, 3 insertions(+), 3 deletions(-)
changed files
M internal/importer/importer.go → internal/importer/importer.go
@@ -28,7 +28,7 @@ Import(context.Context, *search.WriteIndex) (bool, error) } func NewNixpkgsChannelImporter( - source Source, + source *Source, dataPath string, logger *slog.Logger, ) *NixpkgsChannelImporter {@@ -43,7 +43,7 @@ indexPath: indexPath, } } -func NewChannelImporter(source Source, dataPath string, logger *slog.Logger) *ChannelImporter { +func NewChannelImporter(source *Source, dataPath string, logger *slog.Logger) *ChannelImporter { indexPath := dataPath fullpath := path.Join(dataPath, source.Channel)@@ -58,7 +58,7 @@ type importConfig struct { IndexPath string Filename string - Source Source + Source *Source Logger *slog.Logger }