Skip to content

Reliable cache on M-chip Macs #2050

Description

@enzokro

Hi all,
Hoping someone here has come up with a solution to the eternal, annoying problem of image caches not working properly on M-chip macs. Specifically, a step like this will never properly cache, and it reruns every single time:

RUN --mount=type=cache,target=/root/.cache/pip pip install -r /tmp/requirements.txt

Has anyone come up with a patch, or best-practice way of fixing this issue? Given the large and bulky deps of ML libraries, this step makes development much slower.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    goPull requests that update Go codetype/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions