From 0db282a0695d045917b6a54ec6883c5b1c3b7dfb Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Wed, 29 Jan 2025 19:51:29 -0800 Subject: [PATCH] ci: Update Rust version on Dockerfiles for Ubuntu After merging the Rust-based `clnrest` plugin into the master, all three reproducible build scripts failed with the following error: ``` error: package `socketioxide v0.15.1` cannot be built because it requires rustc 1.75.0 or newer, while the currently active rustc version is 1.73.0 Either upgrade to rustc 1.75.0 or newer, or use cargo update -p socketioxide@0.15.1 --precise ver where `ver` is the latest version of `socketioxide` supporting rustc 1.73.0 make: *** [plugins/Makefile:304: target/release/clnrest] Error 101 ``` To resolve this, we can either downgrade `socketioxide` to `v0.11.1`, which is compatible with `Rust >=v1.67` OR Upgrade Rust to `v1.75`. Since the latest Rust version is `1.84`, upgrading to `1.75` seems like a reasonable choice, as it is already 13 months old. Changelog-None. --- contrib/reprobuild/Dockerfile.focal | 2 +- contrib/reprobuild/Dockerfile.jammy | 2 +- contrib/reprobuild/Dockerfile.noble | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/reprobuild/Dockerfile.focal b/contrib/reprobuild/Dockerfile.focal index 8a860f0c254c..49c83f6933fa 100644 --- a/contrib/reprobuild/Dockerfile.focal +++ b/contrib/reprobuild/Dockerfile.focal @@ -55,7 +55,7 @@ RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp RUN wget https://sh.rustup.rs -O rustup-install.sh && \ bash rustup-install.sh --default-toolchain none --quiet -y && \ rm rustup-install.sh && \ - /root/.cargo/bin/rustup install 1.73 + /root/.cargo/bin/rustup install 1.75 # Download protoc manually, it is in the update repos which we # disabled above, so `apt-get` can't find it anymore. diff --git a/contrib/reprobuild/Dockerfile.jammy b/contrib/reprobuild/Dockerfile.jammy index 5cd808ce855f..db96c661d114 100644 --- a/contrib/reprobuild/Dockerfile.jammy +++ b/contrib/reprobuild/Dockerfile.jammy @@ -53,7 +53,7 @@ RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp RUN wget https://sh.rustup.rs -O rustup-install.sh && \ bash rustup-install.sh --default-toolchain none --quiet -y && \ rm rustup-install.sh && \ - /root/.cargo/bin/rustup install 1.73 + /root/.cargo/bin/rustup install 1.75 # Download protoc manually, it is in the update repos which we # disabled above, so `apt-get` can't find it anymore. diff --git a/contrib/reprobuild/Dockerfile.noble b/contrib/reprobuild/Dockerfile.noble index 686b7f3f0a9f..f24c6f7db98c 100644 --- a/contrib/reprobuild/Dockerfile.noble +++ b/contrib/reprobuild/Dockerfile.noble @@ -51,7 +51,7 @@ RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp RUN wget https://sh.rustup.rs -O rustup-install.sh && \ bash rustup-install.sh --default-toolchain none --quiet -y && \ rm rustup-install.sh && \ - /root/.cargo/bin/rustup install 1.73 + /root/.cargo/bin/rustup install 1.75 # Download protoc manually, it is in the update repos which we # disabled above, so `apt-get` can't find it anymore.