translate: refuse VICTORY_FAIL_DUMP and VICTORY_DUMP_MATCH folders inside the repo too #264
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!264
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@sharan104 on GitHub · 2026-11-26 13:35 UTC · original
sharan104:fix/translate-dump-policy→main· +43 −4 · 1 files · 1 commits · opentranslate::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.