hi team, we have a docker container with rust and node. to parallelize the build part we split the rust and node build parts and then do an rsync to merge these. but that rsync essentially is never cached 😦
first the code that is the culprit:
runner = runner.with_directory("/backend3", full_backend).with_exec(
["sh", "-c", "rsync -av /backend3/ /backend"]
)
Is there a way to make things work here without making rsync go bonkers ;((
This is the main question
details:
The idea is we want to copy over a large part of our build before we copy in the sources. we first copy the pnpm lock and then rust artifacts before we copy over the full_backend which are just the main sources we have to build. here is the full code for the build:
https://gist.github.com/sualehasif/ba4fd5c386188fffc96fe40725184b32
Can a dagger pro plese let me know what i am doing wrong here. what is a better way to do this that doesnt use rsync.