Skip to content

Commit

Permalink
chore: prefetch noir deps in earthly for caching (#6556)
Browse files Browse the repository at this point in the history
This is a small optimisation to compilation of nargo in earthly by
downloading any dependencies before we get further into the compilation.
  • Loading branch information
TomAFrench committed May 21, 2024
1 parent b61dea3 commit 8ee9060
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions noir/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ee9060

Please sign in to comment.