google / google/go-containerregistry
cache: key mismatch makes cache inefficient
Open
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
Assessment
This issue has not been assessed yet.