Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

validate: the relative-link check is case-insensitive on Windows and macOS, so a wrong-case link passes locally and fails in CI

Geschlossen
#139 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
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
57/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, node.js
Bereich
testing, tooling

Rechercherichtung

Start with site/validate.mjs:185-189 and site/build.mjs:337-341, where the issue identifies the case-insensitive filesystem checks. Read how the relative-link resolver uses kindOf, then run npm run validate with a fixture link whose case differs from the on-disk path. Done means validation on Windows reports the wrong-case link with the same message as CI on Linux.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

dx priority: low

Why it matters

The maintainer develops on Windows. A link such as ../Docs/Licence-Guide.md resolves with fs.existsSync on NTFS/APFS, npm run validate says "no broken links", and the first signal is a red check on the pushed commit, or a 404 on GitHub Pages, which is case-sensitive.

Evidence (at 69387df)

site/validate.mjs:185-189 resolves the link and only calls fs.existsSync(resolved), with no case comparison. The same applies to kindOf in site/build.mjs:337-341, used by the link resolver.

Suggested approach

After existsSync, compare path.basename(fs.realpathSync.native(resolved)) with path.basename(resolved) (and the parent directory name) and report "broken link (case differs on disk: ...)" when they differ. Share the helper with build's kindOf.

Done when

A fixture link with the wrong case fails npm run validate on Windows with the same message CI gives on Linux.

Vorherrschende Sprache
JavaScript
Sterne
58
Forks
15
Ø Merge
16 Std. 53 Min.
Gemergte PRs (30 T.)
14

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 TMHSDigital/Free-Game-Dev-Assets

Alle Issues in TMHSDigital/Free-Game-Dev-Assets

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

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