rust: add Rust 1.75.0 #4

Open
ryan wants to merge 2 commits from ryan/rust-1.75.0-fix into main
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 0ddfd4c24e - Show all commits

View File

@ -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; \