Skip to content

Commit

Permalink
fix(rust): Allow multiple arguments to +EXECUTE
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenj committed May 8, 2024
1 parent 7fb8719 commit 70541b0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions earthly/rust/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ EXECUTE:
FUNCTION
DO rust+CHECK_INITED
ARG --required cmd
ARG args1
ARG args2
ARG args3
ARG args4
ARG args5
ARG args6
ARG output
ARG junit
ARG coverage
Expand All @@ -187,7 +193,7 @@ EXECUTE:
env | grep EARTHLY; \
set -e; \
rm -f fail; \
$cmd || echo fail > fail; \
$cmd $args1 $args2 $args3 $args4 $args5 $args6 || echo fail > fail; \
cargo sweep -r -t $EARTHLY_SWEEP_DAYS; \
cargo sweep -r -i;

Expand Down Expand Up @@ -236,7 +242,8 @@ CARGO:
ARG docs="false"

DO +EXECUTE \
--cmd="cargo $args" \
--cmd="cargo" \
--args1="$args"
--output="$output" \
--junit="$junit" \
--coverage="$coverage" \
Expand Down

0 comments on commit 70541b0

Please sign in to comment.