Skip to content

Link checkers accept wrong-case and Windows-only path spellings that are dead on GitHub #103

Closed

Description

@drevendev

Reader problem

On Windows, and on macOS's default filesystem, both link checkers pass links that are dead on GitHub. A maintainer running the checks locally, in the Action on a Windows runner, or through the agent plugin, gets a green result for a link that readers can't follow.

Evidence

Observed on 2026-10-23 at master 1114ffe (Python 3.14, Windows 11, NTFS).

The checkers only call exists(), is_file() or is_dir() (tools/docs_links.py:858, tools/html_navigation.py:292). The operating system resolves those calls case-insensitively and normalizes trailing dots and spaces.

Fixture: a file docs/Guide.md and this README.md:

- [wrong case](docs/guide.md)
- [wrong case dir](DOCS/Guide.md)
- [trailing dot](docs/Guide.md.)
- [trailing space](docs/Guide.md%20)
- [stream suffix](docs/Guide.md::$DATA)
- [wrong case with anchor](docs/GUIDE.md#setup)

python -I tools/docs_links.py --root <fixture> prints OK: checked 6 relative Markdown destination(s), and html_navigation.py also passes. On GitHub all six are broken. [x](NUL) passes on Windows too, because NUL is a device name.

The Ubuntu CI job would catch the case mistakes in BeautifulRepo itself. Adopters running only on Windows or macOS would not. guides/adopting-the-checks.md:59 says each check runs on Ubuntu and Windows runners, which implies the results are the same.

Acceptance

  • Each path component is compared exactly against the entries of its parent directory, so a wrong case is reported on every operating system.
  • Trailing dots and spaces, : and reserved device names are reported as non-portable destinations.
  • The tests create real files and run on every CI platform. The Windows job is the one that proves the fix.
  • tools/README.md states the rule.

Activity

  1. added
    bug
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions