#do mounted cache volumes have any "weird

1 messages · Page 1 of 1 (latest)

spring steeple
#

No you can't do anything like WithFile on a cache volume, they aren't layered like that

#

they are a opaque, mutable blob

valid ether
#

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?

spring steeple
#

just want to make sure you're not doing the same thing

tranquil blade
#

sounds about the same yeah

#

here's the relevant code path I landed on:

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

GitHub

A portable devkit for CI/CD pipelines. Contribute to vito/dagger development by creating an account on GitHub.