#do mounted cache volumes have any "weird
1 messages · Page 1 of 1 (latest)
No you can't do anything like WithFile on a cache volume, they aren't layered like that
they are a opaque, mutable blob
lol my first-principals based anxiety here was accurate then
that's troublesome, then, for my LSP-in-a-container aspirations
i guess it could maybe be hacked around via some awful rsync logic... like you do the layering as normal, then always copy to the mounted cache volume?
there's a (private channel) thread that sound very very similar here https://discord.com/channels/707636530424053791/1402708137424715926 cc @tranquil blade
just want to make sure you're not doing the same thing
sounds about the same yeah
here's the relevant code path I landed on:
- https://github.com/vito/dagger/blob/7a738445649da5081ecb8a73fd17eecfc360605b/core/mcp.go#L311-L327 - we remount a directory in the live service container, call the MCP tool, and snapshot the result
i've been seeing cache GC get deadlocked now and then trying to release the same ref twice, so I'm probably messing something up - will finish that investigation post-wedding, unless anyone more familiar wants to take a look for anything obvious (like maybe I need to somehow install a relationships between the service and these late-bound refs?)
there's also the fact that the mutable ref remains mounted to the live service after it's committed - should probably remount a clone of it so any further writes don't poison the cache by writing to the lower layer
A portable devkit for CI/CD pipelines. Contribute to vito/dagger development by creating an account on GitHub.