Skip to content

copy.Options.EnsureCompressionVariantsExist doesn’t detect existing variants with zstd:chunked #201

@mtrmac

Description

@mtrmac

Right now skopeo copy --add-compression=zstd:chunked doesn’t exist — but if it did, repeated copies would keep adding new zstd:chunked instances.

We detect whether the desired instance already exists by the io.github.containers.compression.zstd annotation, but that only means “zstd”; so the code never determines that a zstd:chunked instance exists.

We would either need to add a new annotation (annotation value? or a new key?), or to actually fetch the per-instance manifest to see whether all layers are chunked.

Cc: @giuseppe

Metadata

Metadata

Assignees

No one assigned

    Labels

    imageRelated to "image" package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions