Slackbot
02/07/2022, 11:01 AMThomas Broyer
02/07/2022, 11:33 AMcopyClient
copies from client/dist
but client
declares the whole client/
as inputs and buildDir
as outputs.David Smith
02/07/2022, 12:45 PMclient/dist
from the inputs it might help?David Smith
02/07/2022, 1:30 PMdist
directory from inputs (used fileTree
but I still have the same issue. Do I need to do something with the outputs? How does the cache work, what does it check to see is changed and what is put in there?Thomas Broyer
02/07/2022, 2:18 PMoutputs.dir(buildDir)
does not seem to match the actual task's outputs: it will never save the client/dist
, which also means it will never restore it either, so getting the task outputs from the cache will get you an empty client/dist
(more accurately, it won't change it, and I'm assuming you build "from scratch")
It's important to correctly describe your inputs and outputs to get up-to-date checks (aka incremental builds) and then caching right.David Smith
02/07/2022, 4:29 PMThomas Broyer
02/07/2022, 4:36 PMclient/dist
, it will be in client/dist
. If you can, configure your Yarn build to output outside of client
(ideally somewhere inside the buildDir
)David Smith
02/07/2022, 4:52 PM