Open Redmega opened 2 months ago
I think I'm seeing the same behavior, but unsure. Regardless, it seems that just changing the cache-dance
directory such that it's configurable would let this be fixed, or having it be something like /var/hash(paths)
.
I have two separate caches (one for dependencies, and one for next build caches within a monorepo) that I want to use in my docker build.
The problem is the cache-dance action seems to use the same source folder when extracting the caches. When I added my next build cache to the workflow, it seems that now it overwrites the mounted directed from the first inject step and now the yarn dependencies do not get detected by the docker build.
If I combine all my caches together I'll lose the ability to skip extraction on the dependencies which change much less frequently. I will waste time extracting my yarn cache despite it not changing.