all repos — searchix @ bdb5a54c661407c39668096074a1f4a57898eb77

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

feat: store fetched files in data directory

Alan Pearce
commit

bdb5a54c661407c39668096074a1f4a57898eb77

parent

3e928369c3af69d0ef24a2f5d20c938689b15aa1

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

changed files
M internal/importer/main.gointernal/importer/main.go
@@ -13,6 +13,7 @@ "time"
"alin.ovh/searchix/internal/config" "alin.ovh/searchix/internal/fetcher" + "alin.ovh/searchix/internal/file" "alin.ovh/searchix/internal/index" "alin.ovh/searchix/internal/manpages" "alin.ovh/searchix/internal/programs"
@@ -28,6 +29,7 @@ LowMemory bool
Logger *log.Logger WriteIndex *index.WriteIndex Manpages *manpages.URLMap + Root *file.Root } var Job struct {
@@ -67,6 +69,7 @@ logger.Debug("starting fetcher")
fetcher, err := fetcher.New(source, &fetcher.Options{ Logger: logger, + Root: imp.options.Root, }) if err != nil { return fault.Wrap(err, fmsg.With("error creating fetcher"))