From 239af8947a354bcdd68620895503682eb60c3c63 Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Tue, 3 Mar 2026 21:13:36 +0000 Subject: [PATCH] Re-inspect image after pulling outdated update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After pulling an updated image in pullImage(), re-inspect to get the new image metadata. Previously, the inspect variable retained the old image's SHA, so the log message on the final line reported a stale ID. The 'image doesn't exist locally' code path already re-inspected after pulling — this aligns the 'image exists but is outdated' path to do the same. Fixes #582 --- internal/infra/run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/infra/run.go b/internal/infra/run.go index d30c6142..4a3e47be 100644 --- a/internal/infra/run.go +++ b/internal/infra/run.go @@ -598,6 +598,10 @@ func pullImage(ctx context.Context, cli *client.Client, imageName string) error if err != nil { return fmt.Errorf("image %v is outdated, failed to pull update: %w", imageName, err) } + inspect, err = cli.ImageInspect(ctx, imageName) + if err != nil { + return fmt.Errorf("failed to inspect image %v after pull: %w", imageName, err) + } } else { log.Printf("image %v is already up to date\n", imageName) }