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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user