From ac62fd64b755f0870994da8b8c62627175f3ea4f Mon Sep 17 00:00:00 2001 From: nacho Date: Fri, 15 Sep 2023 11:28:44 +0200 Subject: [PATCH] use share cache mount for git --- rust/Earthfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rust/Earthfile b/rust/Earthfile index 5454805..686e6b0 100644 --- a/rust/Earthfile +++ b/rust/Earthfile @@ -18,7 +18,9 @@ CARGO: find . -maxdepth 1 -regex "\./$source_lib-[^-]+" -exec rm -rf {} \; ;\ done \ done - RUN --mount=type=cache,sharing=shared,target=$cargo_home/registry --mount=type=cache,target=$cargo_home/git cargo $args + RUN --mount=type=cache,sharing=shared,target=$cargo_home/registry \ + --mount=type=cache,sharing=shared,target=$cargo_home/git \ + cargo $args get-stoml: FROM alpine:3.18.3