translate: refuse VICTORY_FAIL_DUMP and VICTORY_DUMP_MATCH folders inside the repo too #264
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/264"
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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by sharan104 on 2026-11-26T13:35:47Z.
translate::runrefuses aVICTORY_EMIT_DUMPfolder inside the source tree (rule #1,docs/asset-policy.md). But two other switches write the title's containers as.cdxiltoo, and neither was checked:VICTORY_FAIL_DUMP=<dir>: the first containers of each failure reasonVICTORY_DUMP_MATCH=<dir>;<text>|…: the containers whose line matchesWith a relative folder, or one pointing into the checkout, the game-derived files landed in the repository. It's the same kind of gap as #33.
Fix: a new
dumps_outside_repo(env)checks all three folders at the start ofrun, readingVICTORY_DUMP_MATCHthe same waytranslatedoes (the part before;). It replaces the singleVICTORY_EMIT_DUMPcheck.Test:
every_dump_folder_inside_repo_is_refusedtakes the environment as a closure instead of setting real variables, so it can't race other tests. For each of the three switches, it checks that a folder in the repo is refused and a temp folder is accepted. It fails before the change and passes after it (10 runs out of 10).Results:
cargo test -p victory --lockedpasses.cargo clippy -p victory --all-targets --locked --no-deps -- -D warningsis clean, with and without--all-features.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.