all repos — searchix @ 2d6315fa9386aaecbc1a7fc6a7ffcceb0ae09c35

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

fix: build failure (bad rebase)
Alan Pearce alan@alanpearce.eu
Fri, 24 Jan 2025 13:10:58 +0100
commit

2d6315fa9386aaecbc1a7fc6a7ffcceb0ae09c35

parent

61ed2c479fcd8b7be54dc30cc1a7f0b0d5ddc852

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

jump to
M internal/programs/programs.gointernal/programs/programs.go
@@ -54,7 +54,8 @@ }, nil }
 
 func (p *DB) Open() error {
-	db, err := sql.Open("sqlite", p.Path)
+	var err error
+	p.db, err = sql.Open("sqlite", p.Path)
 	if err != nil {
 		return errors.WithMessage(err, "failed to open sqlite database")
 	}