From 3d90768dd842519ecdf2d3fab2e55340a309464c Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 6 Jul 2023 16:04:35 -0700 Subject: [PATCH] check for the right contracts file at each build step i dont know why build caches are breaking this --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 02420bc4..0539037b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,7 +70,7 @@ RUN --mount=type=bind,target=.,rw \ --mount=type=cache,target=/app/target \ set -eux; \ \ - [ -e "payment-contracts/src/contracts.rs" ] || touch payment-contracts/build.rs ; \ + [ -e "./payment-contracts/src/contracts/mod.rs" ] || touch ./payment-contracts/build.rs; \ cargo --locked --verbose fetch # build tests (done its in own FROM so that it can run in parallel) @@ -86,6 +86,7 @@ RUN --mount=type=bind,target=.,rw \ --mount=type=cache,target=/app/target \ set -eux; \ \ + [ -e "./payment-contracts/src/contracts/mod.rs" ] || touch ./payment-contracts/build.rs; \ RUST_LOG=web3_proxy=trace,info \ cargo \ --frozen \ @@ -107,6 +108,7 @@ RUN --mount=type=bind,target=.,rw \ --mount=type=cache,target=/app/target \ set -eux; \ \ + [ -e "./payment-contracts/src/contracts/mod.rs" ] || touch ./payment-contracts/build.rs; \ cargo install \ --features "$WEB3_PROXY_FEATURES" \ --frozen \