cog icon indicating copy to clipboard operation
cog copied to clipboard

Reliable cache on M-chip Macs

Open enzokro opened this issue 1 year ago • 1 comments

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!

enzokro avatar Nov 08 '24 04:11 enzokro

Sorry, don't mind me over here fighting with our automated systems 🙄 I don't have an answer for you, but I'm happy to leave this open for a while in case someone else has one!

evilstreak avatar Nov 11 '24 10:11 evilstreak