Skip to content

Confusing API for buildkit caching #1647

Closed as not planned
Closed as not planned

Description

@slumbering

By default the definition os.#Container cache the command by using always field.

	// If true, the command is never cached.
	// (false by default).
	always: true | *false

This naming seems pretty confusing. It has been named this way to avoid confusion with cache mounts which are different.
We went for something literal aka “always run”.

solomon: Caching systems in buildkit (run caching and cache mounts) are actually more related than it first appears. So maybe there is a way to reconcile them in our API

We should rename it more explicitly. cmdCache for instance ?

Activity

  1. changed the title [-]DX improvement for os.#Container[/-] [+]Confusing API for buildkit caching[/+] on Mar 10, 2022
  2. assigned and unassigned on Mar 27, 2022
  3. shykes commented on Mar 27, 2022

    @shykes
    Contributor

    @helderco one more for my list of "inputs to the command composition redesign" topic :)

  4. mircubed commented on Jun 1, 2022

    @mircubed
    Contributor

    @helderco is there an update for this issue, or is it being tracked elsewhere in a larger issue?

  5. helderco commented on Jun 16, 2022

    @helderco
    Contributor

    Not tracked, this is a conversation a bit in the air about the way commands are composed in docker.#Run being in need of a redesign. Nothing concrete has been drafted yet.

  6. removed their assignment
    on Dec 22, 2022
  7. helderco commented on Dec 22, 2022

    @helderco
    Contributor

    Closing since the 0.2 CUE API is frozen, in favor of the GraphQL API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions