Skip to content

Commit

Permalink
Record a FIXME: detect zstd:chunked
Browse files Browse the repository at this point in the history
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
  • Loading branch information
mtrmac committed Jul 27, 2024
1 parent 51768c9 commit 8622767
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions copy/compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8622767

Please sign in to comment.