refactor: deduce index path automatically from config.DataPath
1 file changed, 3 insertions(+), 5 deletions(-)
changed files
M internal/importer/channel.go → internal/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, }) }