google / google/go-containerregistry

cache: key mismatch makes cache inefficient

Open
#950 4 comments 0 reactions 0 assignees View on GitHub
lifecycle/frozen
Dominant language
Go
Stars
4k
Forks
686
Avg merge
2d 12h
Merged PRs (30d)
26

Description

When using cache .Layers(), the cache is never used.

This is because the layers are retrieved by a different hash then they are stored.

----
I created a proof of concept/draft with a symlink from diffid -> digest, so Get (and Delete) accept both hashes, but the changes were larger than I expected, I'm not sure if this is the right approach.

https://github.com/google/go-containerregistry/compare/main...chlunde:cache-digest-and-diffid?expand=1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.