rm to work around rust upgrade

This commit is contained in:
Bryan Stitt 2023-09-20 13:35:33 -07:00
parent 44e8cce9c8
commit ebd5bb215f

@ -83,11 +83,15 @@ ENV WEB3_PROXY_FEATURES "rdkafka-src"
COPY . . COPY . .
# fill the package caches # fill the package caches
# TODO: clean needed because of rust upgrade and jenkins caches :'(
RUN --mount=type=cache,target=/root/.cargo/git \ RUN --mount=type=cache,target=/root/.cargo/git \
--mount=type=cache,target=/root/.cargo/registry \ --mount=type=cache,target=/root/.cargo/registry \
--mount=type=cache,target=/app/target \ --mount=type=cache,target=/app/target \
--mount=type=cache,target=/app/target_test \
set -eux -o pipefail; \ set -eux -o pipefail; \
\ \
rm -rf /app/target/*; \
rm -rf /app/target_test/*; \
[ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \ [ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \
cargo \ cargo \
--locked \ --locked \