ci: add locked flag to bindgen-cli on x86_64_build.sh
authorHelen Koike <helen.koike@collabora.com>
Thu, 14 Sep 2023 13:40:08 +0000 (10:40 -0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 14 Sep 2023 23:30:27 +0000 (23:30 +0000)
since the dependencies were not locked, they got updated and generating
a new container is throwing errors like the following:

error: failed to compile `bindgen-cli v0.62.0`, intermediate artifacts can be found at `/tmp/cargo-installcP54m7`
Caused by:
  package `memchr v2.6.3` cannot be built because it requires rustc 1.61 or newer, while the currently active rustc version is 1.60.0

rust packages have Cargo.lock file from when they were released, so add
--locked flag to use it.

Signed-off-by: Helen Koike <helen.koike@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25226>

.gitlab-ci/container/debian/x86_64_build.sh
.gitlab-ci/image-tags.yml

index dc67396..85d0303 100644 (file)
@@ -93,6 +93,7 @@ python3 -m pip install --break-system-packages -r .gitlab-ci/lava/requirements.t
 # install bindgen
 RUSTFLAGS='-L native=/usr/local/lib' cargo install \
   bindgen-cli --version 0.62.0 \
+  --locked \
   -j ${FDO_CI_CONCURRENT:-4} \
   --root /usr/local
 
index 3a9d459..d4939c4 100644 (file)
@@ -10,7 +10,7 @@ variables:
    DEBIAN_BASE_TAG: "2023-08-30-bindgen-cli"
 
    DEBIAN_X86_64_BUILD_IMAGE_PATH: "debian/x86_64_build"
-   DEBIAN_BUILD_TAG: "2023-06-24-agility-711"
+   DEBIAN_BUILD_TAG: "2023-09-14-bindgen-cli"
 
    DEBIAN_X86_64_BUILD_MINGW_IMAGE_PATH: "debian/x86_64_build-mingw"
    DEBIAN_BUILD_MINGW_TAG: "2023-05-25-bookworm"