ci: docker: use cargo install --locked for cargo-c installation
authorTim-Philipp Müller <tim@centricular.com>
Wed, 27 Nov 2024 19:39:53 +0000 (19:39 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 28 Nov 2024 08:45:09 +0000 (08:45 +0000)
Backported from commit 2263caff

Should fix the following error on image regeneration:

  package `cargo-util v0.2.15` cannot be built because it requires rustc 1.80
  or newer, while the currently active rustc version is 1.76.0

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7989>

ci/docker/fedora/install-rust.sh

index 66918ef40dd41f9135c5dc97478521b2299b965d..424fbe6fae8d6663241d55dc1e61d37ac4fd31ca 100644 (file)
@@ -19,7 +19,7 @@ chmod +x rustup-init;
 rm rustup-init;
 chmod -R a+w $RUSTUP_HOME $CARGO_HOME
 
-cargo install cargo-c --version 0.9.30+cargo-0.77.0
+cargo install --locked cargo-c --version 0.9.30+cargo-0.77.0
 
 rustup --version
 cargo --version