From 8ee9060858a9ee9d9b1741b7ba550bfaadd5e6d4 Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Tue, 21 May 2024 16:35:37 +0100 Subject: [PATCH] chore: prefetch noir deps in earthly for caching (#6556) This is a small optimisation to compilation of nargo in earthly by downloading any dependencies before we get further into the compilation. --- noir/Earthfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/noir/Earthfile b/noir/Earthfile index 88d87214d66..3992742c746 100644 --- a/noir/Earthfile +++ b/noir/Earthfile @@ -18,6 +18,9 @@ nargo-src: noir-repo/.github \ noir-repo + # Fetch any dependencies so that they can be cached + RUN cd noir-repo && cargo fetch && cd ../ + # NOTE: we use a fake commit hash here # we don't want Noir to rebuild everytime the parent repo changes # just only when it changes