From f41b6bfd3224b6ee5a0317fd90f9f4a081be4518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 26 Mar 2020 18:09:59 +0100 Subject: [PATCH] Use stable rustfmt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And install it as the container doesn't have it. Fortunately it's rather quick (few seconds). The previous nightly container apparently dropped rustfmt, which is understandable as not all tools are available all the time. That's on us. Signed-off-by: Maxime “pep” Buquet --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3d0021a8..9df05f23 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,9 +26,11 @@ variables: rustfmt: stage: lint - image: rustlang/rust:nightly script: + - rustup component add rustfmt - find -type f -iname '*.rs' -not -path './target/*' | xargs rustfmt --check --edition 2018 + extends: + - .stable rust-latest-build: extends: