You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My application is a moderate to small c++ code with a bunch of dependencies (200MB-8GB depending on configuration). Depending on which ones and how many downloading or building these can take between minutes to hours so caching is critical.
I use the python SDK because I and my team know Python 😄
How are you currently working around this?
I don't use dagger now, but am excited to use this. Before this, a host volume could be mounted for the APT cache, but this can be tedious and error prone if multiple containers are trying to use it simultaneously.
Putting this issue as stuck for the moment being, even though I hope it can be closed by end of week.
What is blocking
A pending PR implements this behavior: #4437.
It works for GraphQL queries, but breaks at the codegen level.
Context
I relied on an enum graphQL type to benefit from autocompletion when providing the cache sharing mode.
However, none of our codegens implement this type.
Activity
helderco commentedon Jan 4, 2023
This is not Python specific, any API changes will be picked up by all SDKs automatically. So this is an engine request.
[-]✨ support RUN --mount=type=cache in the Python SDK[/-][+]✨ support RUN --mount=type=cache[/+]aluzzardi commentedon Jan 5, 2023
/cc @jlongtine who picked up the "long tail" of supporting the entire API
grouville commentedon Jan 17, 2023
@samalba @aluzzardi, can we bump this as a P1 ? I'll take it, as it's shouldn't be too hard
shykes commentedon Jan 21, 2023
I may be missing something, but isn't this already supported with cache volumes? Under the hood they work exactly the same as
RUN --mount=type=cache.robertu94 commentedon Jan 21, 2023
It's the locking bit that I need so the cache doesn't become corrupted
shykes commentedon Jan 21, 2023
Ah! Of course. Sorry for missing that. Indeed should be trivial to add.
shykes commentedon Jan 21, 2023
For reference here's the equivalent in the CUE API: https://github.com/dagger/dagger/blob/cue-sdk/pkg/dagger.io/dagger/core/exec.cue#L81
grouville commentedon Jan 25, 2023
Using this issue as source of truth
Putting this issue as
stuckfor the moment being, even though I hope it can be closed by end of week.What is blocking
A pending PR implements this behavior: #4437.
It works for GraphQL queries, but breaks at the codegen level.
Context
I relied on an
enumgraphQL type to benefit from autocompletion when providing the cache sharing mode.However, none of our codegens implement this type.
What are the next steps
grouville commentedon Feb 8, 2023
Closed by #4437