Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

クローズ
#139 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
57/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, node.js
領域
testing, tooling

調査の方向性

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.

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

説明

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.

主要言語
JavaScript
スター
58
フォーク
15
平均マージ
16時間 53分
マージ済み PR(30日)
14

環境構築

はじめの一歩

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

TMHSDigital/Free-Game-Dev-Assets のほかの issue

TMHSDigital/Free-Game-Dev-Assets の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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