Skip to content

Commit

Permalink
fix folder not found
Browse files Browse the repository at this point in the history
  • Loading branch information
idelvall committed Sep 8, 2023
1 parent c0b7725 commit 6166743
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rust/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ CARGO:
ARG output_name=$(echo "$cargo_args" | head -n1 | cut -d " " -f1)
IF test $target_subfolder
CACHE ./target/$target_subfolder/
FOR source_lib IN $source_libs
RUN cd ./target/$target_subfolder/.fingerprint; find . -maxdepth 1 -regex "\./$source_lib-[^-]+" -exec rm -rf {} \;
IF [ -d ./target/$target_subfolder/.fingerprint ]
FOR source_lib IN $source_libs
RUN cd ./target/$target_subfolder/.fingerprint; find . -maxdepth 1 -regex "\./$source_lib-[^-]+" -exec rm -rf {} \;
END
END
END
RUN --mount=type=cache,target=$cargo_home/registry cargo $cargo_args
Expand Down

0 comments on commit 6166743

Please sign in to comment.