diff --git a/pmctl/main.go b/pmctl/main.go index 318046e9..3271661a 100644 --- a/pmctl/main.go +++ b/pmctl/main.go @@ -1,6 +1,7 @@ package main import ( + "context" "errors" "fmt" "log" @@ -212,7 +213,7 @@ func cmdSetup(cmd *cobra.Command, args []string) (err error) { } func updateRegistryIndex() { - err := registry.LoadIndexes() + err := registry.LoadIndexes(context.TODO()) if err != nil { log.Printf("WARNING: error loading indexes: %s\n", err) } diff --git a/updates/main.go b/updates/main.go index 84aa132e..ba08d808 100644 --- a/updates/main.go +++ b/updates/main.go @@ -150,7 +150,7 @@ func start() error { Beta: false, }) - err = registry.LoadIndexes() + err = registry.LoadIndexes(module.Ctx) if err != nil { log.Warningf("updates: failed to load indexes: %s", err) } @@ -234,7 +234,7 @@ func checkForUpdates(ctx context.Context) (err error) { } }() - if err = registry.UpdateIndexes(); err != nil { + if err = registry.UpdateIndexes(ctx); err != nil { log.Warningf("updates: failed to update indexes: %s", err) }