From 1aa991ae1f1a426424549c92060b204114c8b3c2 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 11 May 2024 14:34:15 +0200 Subject: refactor: deduce index path automatically from config.DataPath --- internal/importer/nixpkgs-channel.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'internal/importer/nixpkgs-channel.go') diff --git a/internal/importer/nixpkgs-channel.go b/internal/importer/nixpkgs-channel.go index b78844b..2ee6027 100644 --- a/internal/importer/nixpkgs-channel.go +++ b/internal/importer/nixpkgs-channel.go @@ -14,10 +14,9 @@ import ( ) type NixpkgsChannelImporter struct { - DataPath string - Source *Source - Logger *slog.Logger - indexPath string + DataPath string + Source *Source + Logger *slog.Logger } func makeChannelURL(channel string, subPath string) (string, error) { @@ -77,9 +76,8 @@ func (i *NixpkgsChannelImporter) Import( 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, }) } -- cgit 1.4.1