Skip to content

Commit 96cc488

Browse files
committed
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.
1 parent f16fe41 commit 96cc488

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/website.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ jobs:
5757

5858
- name: Copy l10n locales into coreutils
5959
run: |
60-
cp -r coreutils-l10n/src/uu/* coreutils/src/uu/ 2>/dev/null || true
60+
# Only copy locales into utilities that already exist in coreutils
61+
for util_dir in coreutils-l10n/src/uu/*/; do
62+
util=$(basename "$util_dir")
63+
if [ -d "coreutils/src/uu/$util" ]; then
64+
cp -r "$util_dir/locales" "coreutils/src/uu/$util/" 2>/dev/null || true
65+
fi
66+
done
6167
cp -r coreutils-l10n/src/uucore/* coreutils/src/uucore/ 2>/dev/null || true
6268
6369
- name: Build Coreutils Docs

0 commit comments

Comments
 (0)