Skip to content

Commit 3826238

Browse files
committed
image/directory/directory_dest.go: DigestIfUnknown
DigestIfCanonicalUnknown won't work if we want to allow sha512. Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent b2b28b0 commit 3826238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

image/directory/directory_dest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func (d *dirImageDestination) PutBlobWithOptions(ctx context.Context, stream io.
151151
}
152152
}()
153153

154-
digester, stream := putblobdigest.DigestIfCanonicalUnknown(stream, inputInfo)
154+
digester, stream := putblobdigest.DigestIfUnknown(stream, inputInfo)
155155
// TODO: This can take quite some time, and should ideally be cancellable using ctx.Done().
156156
size, err := io.Copy(blobFile, stream)
157157
if err != nil {

0 commit comments

Comments
 (0)