all repos — searchix @ 8ab9adf719090e213bd91b2747986ba6ef94576d

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: pointer type mismatch

Alan Pearce
commit

8ab9adf719090e213bd91b2747986ba6ef94576d

parent

631c02ac689b3366987918737e2b09f52fb16dda

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M internal/importer/importer.gointernal/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 }