From 99e92bf9985dfaa881c8330dfb3dca5f4ffbf976 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 30 Sep 2025 01:32:01 +0200 Subject: [PATCH] root: fix rustup error during build when buildcache version is outdated Signed-off-by: Jens Langhammer --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 756c53c222..f69860ecff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -119,7 +119,11 @@ RUN --mount=type=cache,id=apt-$TARGETARCH$TARGETVARIANT,sharing=locked,target=/v libltdl-dev && \ curl https://sh.rustup.rs -sSf | sh -s -- -y -ENV UV_NO_BINARY_PACKAGE="cryptography lxml python-kadmin-rs xmlsec" +ENV UV_NO_BINARY_PACKAGE="cryptography lxml python-kadmin-rs xmlsec" \ + # https://github.com/rust-lang/rustup/issues/2949 + # Fixes issues where the rust version in the build cache is older than latest + # and rustup tries to update it, which fails + RUSTUP_PERMIT_COPY_RENAME="true" RUN --mount=type=bind,target=pyproject.toml,src=pyproject.toml \ --mount=type=bind,target=uv.lock,src=uv.lock \