check_sitemap_lastmod.py fails on local macOS builds (no Git date for non-ASCII paths)

オープン 初心者向け
#929 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
66/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
git, hugo, python

調査の方向性

まず scripts/check_sitemap_lastmod.py と、48行目付近にある deploy.yaml の Git 設定を確認してください。新規に macOS へクローンし、提案されている core.precomposeunicode と core.quotepath の設定を使って、lastmod エントリが欠落する現象を再現してから、CI と比較してください。設定で解決する場合は CONTRIBUTING.md と AGENTS.md を更新し、そうでなければ、このケースを別個に報告するようチェックを変更してください。

索引モデルが issue の本文から書いたものです。

説明

Problem

python3 scripts/check_sitemap_lastmod.py public/sitemap.xml fails on a local macOS build of main (2026-10-28), although the same check passes in deploy.yaml:

URLs without <lastmod>: 735 (limit 5)
FAILED

The 735 URLs are glossary and curated-resource pages with non-ASCII characters in their file paths. Hugo finds no Git date for them, so they get no lastmod. PR #925 hit the same gap: 10 curated resources with accented filenames got no dateModified locally.

CI sets git config core.quotepath false (deploy.yaml line 48). Setting that locally did not fix it, which suggests a macOS-specific cause. A likely candidate is Unicode normalisation of filenames (NFD on disk vs NFC in Git; see core.precomposeunicode). This has not been tested.

Impact

Local only, as far as we know: the production sitemap is built in CI, and the deploy check passes. But contributors running the documented checks locally get a misleading failure.

Next step

Try git config core.precomposeunicode true with core.quotepath false on a fresh clone. If that fixes it, document it in CONTRIBUTING.md and AGENTS.md (#923). Otherwise, have the check report this case separately.

主要言語
HTML
スター
42
フォーク
33
平均マージ
17時間 18分
マージ済み PR(30日)
111

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

forrtproject/forrtproject.github.io のほかの issue

forrtproject/forrtproject.github.io の issue をすべて見る

似ている issue

Build System の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。