From c77bd8a5788b7da1aa77c403199b506eb3578f5d Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Tue, 23 May 2023 10:37:22 +0100 Subject: [PATCH] build: fix missing "docker" driver name in build progress This was missing, since the driver property can only be fully populated after loading nodes from disk. So we add logic to load the nodes, and check for an error, which ensures that the "docker" driver is always correctly present in the progress description. Signed-off-by: Justin Chadwell --- commands/build.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/build.go b/commands/build.go index cf8de5d7..3467e463 100644 --- a/commands/build.go +++ b/commands/build.go @@ -233,6 +233,10 @@ func runBuild(dockerCli command.Cli, options buildOptions) (err error) { if err != nil { return err } + _, err = b.LoadNodes(ctx, false) + if err != nil { + return err + } ctx2, cancel := context.WithCancel(context.TODO()) defer cancel()