mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #1089] [MERGED] Ignore rpf9-explorer's index cache when it lands in the checkout #1124
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1124
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1089
Author: @milk4sale
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:fix/ignore-rpfpreview-index-cache📝 Commits (2)
48d5a1dIgnore rpf9-explorer's index cache when it lands in the checkout271d72bMerge main into fix/ignore-rpfpreview-index-cache📊 Changes
2 files changed (+8 additions, -0 deletions)
View changed files
📝
.gitignore(+2 -0)📝
docs/design.md(+6 -0)📄 Description
Claimed in the coordination issue as: REPO-RPFPREVIEW-CACHE-IGNORE
What and why
.gitignore: ignoreRpfPreview/.docs/design.md("Full-scan indexes"): say where the index goes on Linux and when it lands in the current directory.rpf9dump modelsandrpf9dump texturessave a full-scan index throughRecoveryIndexCacheinthird_party/rpf9-explorer. Its path starts withEnvironment.GetFolderPath(SpecialFolder.LocalApplicationData), and on Linux .NET returns an empty string for that when the folder does not exist. The index is then written toRpfPreview/Indexes/under the current directory. Run from the repository root, that leaves an untracked JSON file with the archive's full path and the names of its recovered entries, which is game data under the first hard rule inAGENTS.md.Measured on Linux x64 with .NET SDK 10.0.114 and runtime 10.0.14,
rpf9dumpbuilt frommainwith the submodule ate2939175. The source is a 64 KiB file of zeros, so no game file is needed; the index is written with 0 entries.XDG_DATA_HOMEpoints at a missing folder./RpfPreview/Indexes/models-<hash>.jsonXDG_DATA_HOMEunset, home folder without.local/share./RpfPreview/Indexes/models-<hash>.jsonXDG_DATA_HOMEpoints at an existing folder<that folder>/RpfPreview/Indexes/models-<hash>.json; nothing in the current directoryI first saw this with a real archive, where the index listed the recovered entry names. That file is deleted and not attached.
Neither check catches such a file today:
python -I scripts/check_no_game_data.py <index>exits 0. It matches format magics at the start of a file, and the index is JSON..github/workflows/no-game-data.ymlhas no.json.Follow-ups, not in this change:
tools/rpf9dumpcould create the data folder at start, so the index never lands in the current directory.scripts/check_no_game_data.pycould flag a tracked file that starts with{"Schema":"rpfpreview-payload-index/.Tested
git check-ignore -v RpfPreview/Indexes/<name>.jsonmatches the new rule, at the root and in a subfolder.git ls-files -ci --exclude-standardis empty: no tracked file becomes ignored.python -I tests/test_docs_*.py(12 files) andpython -I tests/test_text_write_line_endings.pypass.python -I scripts/check_no_game_data.py .gitignore docs/design.mdexits 0.GPUs tested: n/a
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator rule)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.