Fix rootfs digest computation
Compute digest from uncompressed archive. Properly propagate error on unpack. Rename dist cmd commands to match command name. Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
82a2d766ec
commit
4492a2cee3
3 changed files with 7 additions and 6 deletions
|
@ -33,7 +33,7 @@ func (rp remoteUnpacker) Unpack(ctx context.Context, layers []ocispec.Descriptor
|
|||
}
|
||||
resp, err := rp.client.Unpack(ctx, &pr)
|
||||
if err != nil {
|
||||
return "", nil
|
||||
return "", err
|
||||
}
|
||||
return resp.ChainID, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue