all repos — searchix @ 21e9e778cc6be3c8717cd4286bedd17f2b22282a

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

feat: add offline flag to reindex (mostly for dev)

Alan Pearce
commit

21e9e778cc6be3c8717cd4286bedd17f2b22282a

parent

11a0ae77d2e66bcdd0a65c71a160dcc5d9d64e56

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

changed files
M internal/importer/package.gointernal/importer/package.go
@@ -123,7 +123,7 @@ results := make(chan nix.Importable)
errs := make(chan error) if i.programs != nil { - err := i.programs.Open() + err := i.programs.Open(ctx) if err != nil { errs <- fault.Wrap(err, fmsg.With("could not open programs database")) i.programs = nil
@@ -284,7 +284,7 @@
continue } - if i.programs != nil { + if i.source.Programs.Enable { programs, err = i.programs.GetPackagePrograms(ctx, kv.Key) if err != nil { errs <- fault.Wrap(err, fmsg.Withf("failed to get programs for package %s", i.pkg.Name))