From 96cc48809d7b66957ed1cb5e39fdd3267e4c2f73 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 21 Mar 2026 23:07:49 +0100 Subject: [PATCH] Fix l10n copy: only copy locales into existing coreutils utilities The l10n repo contains utilities (e.g. hashsum) that don't exist in the coreutils workspace. Copying entire directories created phantom workspace members that broke Cargo. --- .github/workflows/website.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index df7469321..f912282d0 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -57,7 +57,13 @@ jobs: - name: Copy l10n locales into coreutils run: | - cp -r coreutils-l10n/src/uu/* coreutils/src/uu/ 2>/dev/null || true + # Only copy locales into utilities that already exist in coreutils + for util_dir in coreutils-l10n/src/uu/*/; do + util=$(basename "$util_dir") + if [ -d "coreutils/src/uu/$util" ]; then + cp -r "$util_dir/locales" "coreutils/src/uu/$util/" 2>/dev/null || true + fi + done cp -r coreutils-l10n/src/uucore/* coreutils/src/uucore/ 2>/dev/null || true - name: Build Coreutils Docs