mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
build: sublogger to show docker load progress output
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -60,8 +60,10 @@ func (c *Client) LoadImage(ctx context.Context, name string, status progress.Wri
|
||||
return
|
||||
}
|
||||
|
||||
prog := progress.WithPrefix(status, "", false)
|
||||
if err := fromReader(prog, "importing to docker", resp.Body); err != nil {
|
||||
status = progress.ResetTime(status)
|
||||
if err := progress.Wrap("importing to docker", status.Write, func(l progress.SubLogger) error {
|
||||
return fromReader(l, resp.Body)
|
||||
}); err != nil {
|
||||
handleErr(err)
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user