fix(docs-scripts): pin LC_ALL=C so SCRIPTS.md ordering is deterministic
All checks were successful
Check / eval-and-lint (push) Successful in 6m35s

CI's drift check failed on pure ordering noise: the generator's `sort`
collated rows and caller lists by the ambient locale (en_GB.UTF-8 on the
dev box that committed the file, C in the CI container), so `-` vs `/` and
`-` vs `s` ordered differently (e.g. theme-update vs themes-prebuild,
caller-list order). Force LC_ALL=C in the generator and regenerate
docs/SCRIPTS.md in that collation, so the committed copy and any
regeneration — dev box or CI — are byte-identical.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Bernardo Magri
2026-05-30 08:17:41 +01:00
parent e8cb346759
commit 9751da2523
2 changed files with 22 additions and 16 deletions

View File

@@ -3,6 +3,12 @@
# pipefail and -e off; -u stays.
set -u
# Deterministic collation regardless of the caller's locale. Without this
# `sort` orders rows and caller lists by the ambient LC_COLLATE (UTF-8 on a
# dev box, C in the CI container), so the committed doc and CI's regenerated
# copy disagree on ordering and the drift check fails on pure noise.
export LC_ALL=C
# nomarchy-docs-scripts
#
# Regenerates docs/SCRIPTS.md from the repo state. Produces: