Skip to content

Commit a9b9b6e

Browse files
committed
rust: Echo cargo $args into the logs
The logs otherwise just contain: ``` --> RUN set -e; cargo $args; cargo sweep -r -t $EARTHLY_SWEEP_DAYS; cargo sweep -r -i; $EARTHLY_FUNCTIONS_HOME/copy-output.sh "$output"; ``` which doesn't show what is actually being run.
1 parent b8f3ea5 commit a9b9b6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust/Earthfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@ CARGO:
6161
END
6262
RUN --mount=$EARTHLY_RUST_CARGO_HOME_CACHE --mount=$EARTHLY_RUST_TARGET_CACHE \
6363
set -e; \
64+
echo "+CARGO: cargo $args"; \
6465
cargo $args; \
66+
echo "+CARGO: sweeping target cache"; \
6567
cargo sweep -r -t $EARTHLY_SWEEP_DAYS; \
6668
cargo sweep -r -i; \
69+
echo "+CARGO: copying output"; \
6770
$EARTHLY_FUNCTIONS_HOME/copy-output.sh "$output";
6871
RUN $EARTHLY_FUNCTIONS_HOME/rename-output.sh "$output"
6972

0 commit comments

Comments
 (0)