From 39ac3636646fb109239ffe2e91244150a03bc2bf Mon Sep 17 00:00:00 2001 From: Kieren Davies Date: Thu, 9 Mar 2023 20:39:09 +0100 Subject: [PATCH] fix: Respect `Cargo.lock` when building containers Building the shuttle containers was failing during the `cargo chef cook` step because of a cyclic dependency introduced by an upstream crate. This did not happen when building outside of a container, because the versions pinned by `Cargo.lock` did not contain any cycles. See https://github.com/tkaitchuck/aHash/issues/95 --- Containerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index 0765cba36..cf7fa997d 100644 --- a/Containerfile +++ b/Containerfile @@ -14,7 +14,7 @@ WORKDIR /build FROM shuttle-build as cache WORKDIR /src COPY . . -RUN find ${SRC_CRATES} \( -name "*.proto" -or -name "*.rs" -or -name "*.toml" -or -name "README.md" -or -name "*.sql" \) -type f -exec install -D \{\} /build/\{\} \; +RUN find ${SRC_CRATES} \( -name "*.proto" -or -name "*.rs" -or -name "*.toml" -or -name "Cargo.lock" -or -name "README.md" -or -name "*.sql" \) -type f -exec install -D \{\} /build/\{\} \; FROM shuttle-build AS planner COPY --from=cache /build .