Skip to content

Commit

Permalink
add cargo sweep -r -i
Browse files Browse the repository at this point in the history
  • Loading branch information
idelvall committed Oct 31, 2023
1 parent 9dbf434 commit 5d7b59c
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 @@ -28,8 +28,10 @@ CARGO:
find . -type f -regextype posix-egrep -regex \"./$output\" -exec cp --parents \{\} /earthly_lib_rust_temp \; ;
cd ..;
fi;
echo \"Running cargo sweep -dry-run -r -t $sweep_days\" ;
/tmp/earthly/cargo-sweep sweep --dry-run -r -t $sweep_days;"
echo \"Running cargo sweep -r -t $sweep_days\" ;
/tmp/earthly/cargo-sweep sweep -r -t $sweep_days;
echo \"Running cargo sweep -r -i\" ;
/tmp/earthly/cargo-sweep sweep -r -i;"
IF [ "$output" != "" ]
RUN mkdir -p target; \
mv /earthly_lib_rust_temp/* target 2>/dev/null || echo "no files found within ./target matching the provided output regexp" ;
Expand Down

0 comments on commit 5d7b59c

Please sign in to comment.