Skip to content

feat(Gp4Validator): warn about paths that differ only by case - #32

Open
skippdot wants to merge 1 commit into
OpenOrbis:masterfrom
skippdot:pr/validator-case-duplicates
Open

skippdot wants to merge 1 commit into
OpenOrbis:masterfrom
skippdot:pr/validator-case-duplicates

Conversation

@skippdot

@skippdot skippdot commented Oct 6, 2026

Copy link
Copy Markdown

Adds a GP4 validator warning for paths that differ only by case.

The console resolves paths case-insensitively (the flat path table hashes upper-cased paths), so a.xxx and A.XXX are the same file on the console, and which one it opens is undefined. This shows up in practice when a base package and a patch ship the same files with different case (one game's patch has 487 .XXX files replacing base .xxx files).

I made it a warning rather than fatal, so existing projects still build. Part of maxton#59-style validation (maxton#59).

Tests: Gp4ValidatorTests.

The console resolves paths case-insensitively, so such pairs are one file there. Seen in practice when merging a base pkg (.xxx) with a patch shipping the same files as .XXX.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant