From ea1b77b13931d0b659d2b29f6f26955cb9f07d2c Mon Sep 17 00:00:00 2001 From: Willem Drijver Date: Mon, 2 Nov 2026 16:20:30 +0300 Subject: [PATCH] Sort subfolders in content_files for a stable order os.walk returns subfolders in file system order, which differs between macOS and Linux, so CODEOWNERS was generated in a different order locally and in CI. Co-Authored-By: Claude Opus 5.5 --- .github/CODEOWNERS | 6 +++--- tools/kblib.py | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index fd24403..24dc70f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -15,11 +15,11 @@ /.github/ @WDrijver @TuKo1982 /.markdownlint.jsonc @WDrijver @TuKo1982 -/core/saga-video-isabelle/index.md @WDrijver -/core/saga-dma-anni/index.md @WDrijver -/core/saga-3d-maggie/index.md @WDrijver /core/cpu-68080/index.md @WDrijver +/core/saga-3d-maggie/index.md @WDrijver /core/saga-audio-arne/index.md @WDrijver +/core/saga-dma-anni/index.md @WDrijver +/core/saga-video-isabelle/index.md @WDrijver /os/apolloos-and-amigaos-on-v4.md @WDrijver /os/apolloos-specific-on-v4.md @WDrijver /os/os-takeover.md @WDrijver diff --git a/tools/kblib.py b/tools/kblib.py index a2f9cda..c9f0e45 100644 --- a/tools/kblib.py +++ b/tools/kblib.py @@ -56,7 +56,8 @@ def maintainers(): def content_files(): - """Yield repo-relative paths of all knowledge base content files.""" + """Yield repo-relative paths of all knowledge base content files, in the + same order on every platform.""" for dirpath, dirnames, filenames in os.walk(ROOT): rel_dir = os.path.relpath(dirpath, ROOT) top = rel_dir.split(os.sep)[0] @@ -64,6 +65,8 @@ def content_files(): dirnames[:] = sorted(d for d in dirnames if d not in SKIP_DIRS) elif top in SKIP_DIRS: continue + else: + dirnames.sort() for name in sorted(filenames): if not name.endswith(".md"): continue