Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix manifest updates when we match a layer by TOC digest #2294

Merged
merged 1 commit into from
Feb 15, 2024

Commits on Feb 14, 2024

  1. Fix manifest updates when we match a layer by TOC digest

    Either return a compressed digest and compressed size, or
    an uncompressed digest and an uncompressed size (if we are allowed
    to change the manifest); if neither is possible, ignore the match
    and force a layer pull.
    
    In almost all cases, a TOC match implies the layer has a TOC digest
    annotation, i.e. the input manifest is OCI, where the size field
    is mandatory; so this should not change which layers will be reused
    - it just changes the returned size value.
    
    Signed-off-by: Miloslav Trmač <[email protected]>
    mtrmac committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    80395a3 View commit details
    Browse the repository at this point in the history