all repos — searchix @ 041ebd2291db60e73d7fc213cd8a74d33b7f089b

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

fix: nil pointer when updating all sources

Alan Pearce
commit

041ebd2291db60e73d7fc213cd8a74d33b7f089b

parent

64881323e89d6d9b96865a5fa6f2150b826683db

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M internal/importer/main.gointernal/importer/main.go
@@ -33,7 +33,7 @@
forceUpdate = forceUpdate || (onlyUpdateSources != nil && len(*onlyUpdateSources) > 0) for name, source := range cfg.Importer.Sources { - if len(*onlyUpdateSources) > 0 { + if onlyUpdateSources != nil && len(*onlyUpdateSources) > 0 { if !slices.Contains(*onlyUpdateSources, name) { continue }