From 9463b2e322aaba0c6b278e57fc7557d679310bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Fri, 15 Mar 2024 22:33:11 +0100 Subject: [PATCH] Record a FIXME: detect zstd:chunked MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- copy/compression.go | 1 + 1 file changed, 1 insertion(+) diff --git a/copy/compression.go b/copy/compression.go index cfb4c8d107..1ff79c424d 100644 --- a/copy/compression.go +++ b/copy/compression.go @@ -46,6 +46,7 @@ type bpDetectCompressionStepData struct { // Returns data for other steps. func blobPipelineDetectCompressionStep(stream *sourceStream, srcInfo types.BlobInfo) (bpDetectCompressionStepData, error) { // This requires us to “peek ahead” into the stream to read the initial part, which requires us to chain through another io.Reader returned by DetectCompression. + // FIXME: Detect zstd:chunked from annotations! format, decompressor, reader, err := compression.DetectCompressionFormat(stream.reader) // We could skip this in some cases, but let's keep the code path uniform if err != nil { return bpDetectCompressionStepData{}, fmt.Errorf("reading blob %s: %w", srcInfo.Digest, err)