op.#SaveImage: fix data race
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
b2c4fea73d
commit
e5c571b8a9
@ -892,6 +892,8 @@ func (p *Pipeline) SaveImage(ctx context.Context, op *compiler.Value, st llb.Sta
|
||||
image []byte
|
||||
)
|
||||
go func() {
|
||||
var err error
|
||||
|
||||
image, err = io.ReadAll(pipeR)
|
||||
errCh <- err
|
||||
}()
|
||||
|
Reference in New Issue
Block a user