fix: make gen deterministic with LC_ALL=C byte-order sort

Plain sort in scripts/gen-docs.sh is locale-dependent: category-less tool
keys start with '|', which collates after letters under the CI container's
locale (pos-config/pos-tree moved to the end of the tree/dispatch/filetable
blocks). The new Gitea Actions gate caught this as a gen-drift failure on a
clean checkout. Force LC_ALL=C for byte-order sort and regenerate the doc
(config/tree now deterministically sort after the letter categories).
This commit is contained in:
he
2026-08-14 15:44:03 -04:00
parent e0b5b11bf9
commit 647699b4cc
3 changed files with 12 additions and 4 deletions
+4
View File
@@ -15,6 +15,10 @@ root="$(cd "$(dirname "$0")/.." && pwd)"
mode="write"
[ "${1:-}" = "--check" ] && mode="check"
# Deterministic byte-order sorting regardless of host/CI locale (category-less
# tool keys start with "|", which collates differently per-locale).
export LC_ALL=C
ctx="$root/DOC/AGENT_Context_Project.md"
comp="$root/completions/pos.bash"