From 36792404a98de996e2cf6a7485e667fe6f1cee19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 6 Feb 2024 10:30:08 +0200 Subject: [PATCH] ci: Don't install `cargo-c` with `--locked` on nightly for now Otherwise a version of ahash is used that doesn't build on nightly anymore. Part-of: --- ci/install-rust.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/install-rust.sh b/ci/install-rust.sh index e5142cf66..f60f48a43 100755 --- a/ci/install-rust.sh +++ b/ci/install-rust.sh @@ -35,7 +35,13 @@ if [ "$RUST_IMAGE_FULL" = "1" ]; then cargo install --locked --force grcov fi -cargo install --locked cargo-c --version 0.9.22+cargo-0.72 +if [ "$RUST_VERSION" = "nightly" ]; then + # FIXME: Don't build cargo-c with --locked for now because otherwise a + # version of ahash is used that doesn't build on nightly anymore + cargo install cargo-c --version 0.9.22+cargo-0.72 +else + cargo install --locked cargo-c --version 0.9.22+cargo-0.72 +fi if [ "$RUST_VERSION" = "nightly" ]; then rustup component add rustfmt --toolchain nightly