From 92ee45fe066465598703203e9dcb88cec79eb0de Mon Sep 17 00:00:00 2001 From: viettranx Date: Thu, 9 Apr 2026 22:29:49 +0700 Subject: [PATCH] fix(backup): guard nil context in checkPgDump preflight --- internal/backup/preflight.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/backup/preflight.go b/internal/backup/preflight.go index dcc895ef..a53ee4a8 100644 --- a/internal/backup/preflight.go +++ b/internal/backup/preflight.go @@ -84,6 +84,9 @@ func RunPreflight(ctx context.Context, dsn, dataDir, workspace string) *Prefligh } func checkPgDump(ctx context.Context) PreflightCheck { + if ctx == nil { + ctx = context.Background() + } path, err := exec.LookPath("pg_dump") if err != nil { return PreflightCheck{