From 779024deaf87958c9c7b60b2114b4bbfb8727964 Mon Sep 17 00:00:00 2001 From: Matt Robinson <50462255+matthewrobinsondev@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:04:11 +0000 Subject: [PATCH] docs: remove depreceated call to Run and replace with RunContext (#885) --- examples/go-migrations/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/go-migrations/main.go b/examples/go-migrations/main.go index ae1bc4280..af238c486 100644 --- a/examples/go-migrations/main.go +++ b/examples/go-migrations/main.go @@ -3,6 +3,7 @@ package main import ( + "context" "flag" "log" "os" @@ -43,7 +44,8 @@ func main() { arguments = append(arguments, args[3:]...) } - if err := goose.Run(command, db, *dir, arguments...); err != nil { + ctx := context.Background() + if err := goose.RunContext(ctx, command, db, *dir, arguments...); err != nil { log.Fatalf("goose %v: %v", command, err) } }