From 0ddfd4c24e819844876ec9d01d3893400f861f6b Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 5 Feb 2024 21:03:14 -0500 Subject: [PATCH] rust: add registry in root as well --- src/core/rust/Containerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/rust/Containerfile b/src/core/rust/Containerfile index 3390847..a3a906a 100644 --- a/src/core/rust/Containerfile +++ b/src/core/rust/Containerfile @@ -116,7 +116,7 @@ RUN tar -xzf rustc-${VERSION}-src.tar.gz WORKDIR rustc-${VERSION}-src COPY --from=rust . / # Required by Rust >= 1.75.0 -RUN mkdir -p /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ +RUN mkdir -p $HOME/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ RUN set -eux; \ ./configure \ --build="x86_64-unknown-linux-musl" \ @@ -158,6 +158,8 @@ RUN set -eux; \ FROM build as install USER 0:0 +# Required by Rust >= 1.75.0 +RUN mkdir -p /.cargo/registry/src/index.crates.io-6f17d22bba15001f/ RUN set -eux; \ python3 x.py install; \ cd /rootfs/usr/lib/rustlib; \