From 76ad48cd1b0ac870c19fd9313f034dbc65f14e2a Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 26 Jul 2024 12:26:40 +0200 Subject: [PATCH] ci: Pin `rustc` to version 1.78 due to a type inference regression Changelog-None --- .github/scripts/setup.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/scripts/setup.sh b/.github/scripts/setup.sh index 81c001ceff20..497e5d3ac3c8 100755 --- a/.github/scripts/setup.sh +++ b/.github/scripts/setup.sh @@ -1,7 +1,10 @@ #!/bin/bash set -e export DEBIAN_FRONTEND=noninteractive -export RUST_VERSION=stable + +# Fix the RUST_VERSION as 1.80 appears to have a regression (the +# `time` crate about a missing type annotation.) +export RUST_VERSION=1.78 sudo useradd -ms /bin/bash tester sudo apt-get update -qq @@ -56,6 +59,9 @@ sudo chmod 0440 /etc/sudoers.d/tester curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \ -y --default-toolchain ${RUST_VERSION} +echo "rustc version = $(rustc --version)" +echo "cargo version = $(cargo --version)" + # We also need a relatively recent protobuf-compiler, at least 3.12.0, # in order to support the experimental `optional` flag.