moby / moby/buildkit

Proposal: Use referrers api to import/export inline type cache

Open
#4,893 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement
Dominant language
Go
Stars
10.3k
Forks
1.5k
Avg merge
1d 23h
Merged PRs (30d)
48

Description

The inline cache exporter only supports min cache mode, to expand inline cache exporter to max mode, I recommend using the referrers api to associate the original image with the build cache.

referrers api: https://github.com/opencontainers/distribution-spec/blob/main/spec.md#pushing-manifests-with-subject

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the inline cache exporter and its import path, then read the linked OCI distribution-spec section on pushing manifests with a subject. The proposed work is to support max cache mode by using the referrers API to associate the original image with build cache; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.