Skip to content

Commit

Permalink
use share cache mount for git
Browse files Browse the repository at this point in the history
  • Loading branch information
idelvall committed Sep 15, 2023
1 parent 9ca1ca8 commit ac62fd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac62fd6

Please sign in to comment.