From 633ce64cdf49e751a9a7658e0e92a386ac81d17c Mon Sep 17 00:00:00 2001 From: cflmy Date: Fri, 27 Nov 2026 09:15:05 +0800 Subject: [PATCH] ci: add rustfmt/clippy for the Web component entries in the candidate image The candidate image installs a minimal Rust profile, so the Design/Preview component entries failed at cargo fmt before any quality gate ran. Add the two components once (only when the active toolchain lacks rustfmt) before running the pinned domain entries. --- scripts/integration.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/integration.sh b/scripts/integration.sh index c213f01..af26533 100755 --- a/scripts/integration.sh +++ b/scripts/integration.sh @@ -100,6 +100,12 @@ python3 cli/tools/ci/verify_extension_contracts.py \ # 5.5 Web domain: component entries from the pinned domain gitlink, then a cold # install of the same-built web Tool with a generic check/preview/handoff run. +# The candidate image uses a minimal Rust profile; component entries run +# fmt/clippy, so add those components once when the active toolchain lacks them. +if command -v rustup >/dev/null 2>&1 \ + && ! rustup component list --installed 2>/dev/null | grep -qx 'rustfmt.*'; then + rustup component add rustfmt clippy +fi ( cd extensions/web/design MARQDO_BIN="$MARQDO_BIN" scripts/ci.sh