all repos — searchix @ 1aa991ae1f1a426424549c92060b204114c8b3c2

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

refactor: deduce index path automatically from config.DataPath

Alan Pearce
commit

1aa991ae1f1a426424549c92060b204114c8b3c2

parent

48423548f4718886d32a87ddd65d5ee2620fd8c8

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

changed files
M internal/importer/channel.gointernal/importer/channel.go
@@ -20,7 +20,6 @@ DataPath string
Source *Source SourceFile string Logger *slog.Logger - indexPath string } func (i *ChannelImporter) FetchIfNeeded(parent context.Context) (bool, error) {
@@ -86,9 +85,8 @@ filename := path.Join(i.DataPath, i.SourceFile, i.Source.OutputPath)
i.Logger.Debug("preparing import run", "revision", i.Source.Repo.Revision, "filename", filename) return processOptions(parent, indexer, &importConfig{ - IndexPath: i.indexPath, - Source: i.Source, - Filename: filename, - Logger: i.Logger, + Source: i.Source, + Filename: filename, + Logger: i.Logger, }) }