Repository navigation
manifest: exclude a manifest spelled with another case (MANIFEST-WALK-CASE-EXCLUDE) - #1441
Open
Dashhhhhhhh wants to merge 1 commit into
Open
Dashhhhhhhh wants to merge 1 commit into
Dashhhhhhhh wants to merge 1 commit into
Conversation
normcase(realpath()) kept Game and game apart on macOS, so the next create treated the manifest as an input and verify listed it as new. The scan now uses the shared path key, which folds that case, and a hashed file under the other spelling is still refused. Co-authored-by: Cursor <cursoragent@cursor.com>
tiguan26
approved these changes
Nov 25, 2026
tiguan26
left a comment
Contributor
There was a problem hiding this comment.
Approving. Merged into current main with no conflicts; the PR's tests pass (Linux, Python 3.13). Comparing through path_key folds case on a case-insensitive volume, where normcase(realpath()) keeps the typed case on macOS, so Game/manifest.json and game/manifest.json are now the same file for --exclude and for the output-inside-game-folder check.
AI-assisted (Claude).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: MANIFEST-WALK-CASE-EXCLUDE
What and why
tools/manifest.pywalk()decided the manifest was outside the game folder by comparingos.path.normcase(os.path.realpath()). That keeps the case you typed on macOS. A folder created asGameand--out game/MANIFEST.jsonare one file on APFS, so the nextcreatetreated the manifest as an input and refused to replace it, andverifylisted it asNEWand then printedOK.The scan now compares
report_paths.path_key, which folds case on a volume that ignores it. Recreating a real manifest under the other spelling works. A hashed file under the other spelling is still refused, and a hard link to a hashed file is still refused.manifest_verifier.pyhas the same exclude key; pull requests #344 and #899 already edit that file, so this change leaves it alone.Tested
python -I tests/test_manifest.py(42 tests) andpython -I tests/test_report_paths.py(22 tests), on macOS APFS. The new tests excludePKG/Manifest.jsonfrom a folder created aspkg, recreate that manifest, and refusePKG/ROOT.DAT. No game files.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly.docs/design.md(not a translator change).Made with Cursor