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

Offen Anfängerfreundlich
#929 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
66/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
git, hugo, python

Rechercherichtung

Beginne mit scripts/check_sitemap_lastmod.py und den Git-Einstellungen in deploy.yaml um Zeile 48. Reproduziere die fehlenden lastmod-Einträge mit einem frischen macOS-Klon unter Verwendung der vorgeschlagenen Einstellungen core.precomposeunicode und core.quotepath und vergleiche das Ergebnis anschließend mit CI. Wenn die Einstellung das Problem behebt, aktualisiere CONTRIBUTING.md und AGENTS.md; andernfalls lasse die Prüfung diesen Fall separat melden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
HTML
Sterne
42
Forks
33
Ø Merge
16 Std. 3 Min.
Gemergte PRs (30 T.)
121

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus forrtproject/forrtproject.github.io

Alle Issues in forrtproject/forrtproject.github.io

Ähnliche Issues

Weitere Issues zu Build System

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.